* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

a {
    text-decoration: none;
}

input,
label {
    user-select: none;
    /* 禁止文字被选中 */
    -webkit-tap-highlight-color: transparent;
    /* 设置点击时的高亮颜色为透明 */
}

input,
textarea {
    border-radius: 5px;
    border: 1px solid black;
    -webkit-tap-highlight-color: transparent;
}

/* no outline while focused */
textarea:focus,
textarea:active {
    outline: none;
    border: 2px solid black;
}

input:focus,
input:active {
    outline: none;
    border: 2px solid black;
}

body {
    font-family: -apple-system, system-ui, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Arial, sans-serif;
    font-size: 16px;

    /* --primary-color: #4CAF50; */
    /* latest used color */
    --primary-color: #4CC486;
    --green-color: #4CC486;
    /* --primary-color: #2da160; */
    /* --primary-color: #52b87a; */
    --primary-trans-color: rgb(255, 63, 26);
    --secondary-color: #F5FFF4;
    --warm-color: #d4237a;
    --holiday-red-color: #B82132;

    --font-dark-color: #3a383f;

    --text-weight-normal: 100;
    --text-weight-middle: 500;
    --text-weight-bold: 900;

    --text-primary-color: #1A237E;
    --text-secondary-color: #87878c;
    --text-tertiary-color: rgb(115, 114, 110);

    --el-input-focus-border: black;
    --el-input-focus-border-color: black;

    --divider-color: #f3f3f3;
    --divider-dark-color: #ededed;

    --color-gray-background: rgba(247, 249, 249, 1.00);

    --app-page-padding: 10px;


    --font-size-extra-extra-large: 3rem;
    --font-size-extra-large: 2rem;
    --font-size-large: 1.5rem;
    --font-size-title: 1.3rem;
    --font-size-normal-bigger: 1.2rem;
    --font-size-normal: 1.1rem;
    --font-size-middle: 1rem;
    --font-size-middle-smaller: 0.9rem;
    --font-size-small: 0.8rem;
    --font-size-tiny: 0.7rem;
    --font-size-extra-tiny: 0.6rem;
    --font-size-button: 1rem;

    --color-jie: #57564F;
    --color-lv: #D1A980;
    /* --color-lv: #FF9B00; */
    /* --color-lv: #efe3cd; */

    --color-1: #57564F;
    /* --color-2: #efe3cd; */
    --color-2: #D1A980;

    -webkit-user-select: none;
    user-select: none;
}

.input {
    padding: 10px;
    border: 1px solid var(--text-secondary-color);
    border-radius: 5px;
}

.button {
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    border-radius: 25px;
    border: none;
    font-weight: var(--text-weight-middle);
    width: 100%;
    padding: 12px 0px;
    text-align: center;
    box-shadow: 0 2px 5px 0px rgba(0, 0, 0, 0.3);
}

.button-red {
    background-color: red;
}

.button-black {
    background-color: var(--font-dark-color);
    color: white;
}

.button-small {
    width: auto;
    padding: 5px 10px;
    font-size: 0.8rem;
}

.button-white {
    background-color: white;
    color: var(--font-dark-color);
    padding: 15px 20px;
    font-size: 1rem;
    box-shadow: 0 1px 5px 0px rgba(0, 0, 0, 0.3);
}


/* pop message window */
.pop_wrapper {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.pop_msg_container {
    width: 90%;
    background-color: white;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;

    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pop_msg_container.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.pop_container_top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.pop_title {}

.pop_close {
    cursor: pointer;
}

.pop_container_middle {}

.pop_msg_content {
    padding: 20px;
    text-align: center;
}

.pop_container_bottom {
    padding: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}


.pop_loading_container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
}

.pop_loading_icon {
    background-image: url("/image/app/loading.gif");
    background-size: cover;
    width: 50px;
    height: 50px;
}

.pop_loading_text {
    padding: 10px 0px;
    text-align: center;
}


.page-container {
    display: flex;
    flex-direction: row;
}

.index-page {
    width: calc(100vw);
    height: calc(90vh);
    padding: 10px;
}

/* 隐藏原生的checkbox */
input[type="checkbox"] {
    display: none;
}

/* 创建自定义的checkbox外观 */
input[type="checkbox"]+label {
    position: relative;
    padding-left: 25px;
    /* 调整复选框的大小 */
    cursor: pointer;
    /* display: inline-block; */
    display: flex;
    line-height: 20px;
    /* 调整与文本的垂直对齐 */
}

/* 创建复选框的外观 */
input[type="checkbox"]+label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 15px;
    /* 调整复选框的大小 */
    height: 15px;
    /* 调整复选框的大小 */
    border: 2px solid black;
    /* 黑色边框 */
    background-color: #fff;
    /* 背景颜色 */
}

/* 创建选中时的勾 */
input[type="checkbox"]:checked+label:before {
    content: "\2713";
    /* Unicode码，表示勾 */
    font-size: 13px;
    font-weight: 800;
    /* 调整勾的大小 */
    line-height: 15px;
    /* 与文本垂直居中对齐 */
    color: black;
    /* 勾的颜色 */
    background-color: #fff;
    /* 背景颜色 */
    text-align: center;
    /* 居中对齐 */
    border: 2px solid black;
    /* 选中时的边框颜色 */
}



/* 隐藏原生的radio */
input[type="radio"] {
    display: none;
}

/* 创建自定义的radio外观 */
input[type="radio"]+label {
    position: relative;
    padding-left: 30px;
    /* 调整radio的大小 */
    cursor: pointer;
    /* display: inline-block; */
    display: flex;
    line-height: 20px;
    /* 调整与文本的垂直对齐 */
}

/* 创建radio的外观，一个黑色的圆圈 */
input[type="radio"]+label:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    /* 与第一行文字顶部对齐 */
    width: 20px;
    /* 调整radio的大小 */
    height: 20px;
    /* 调整radio的大小 */
    border: 2px solid black;
    /* 黑色边框 */
    border-radius: 50%;
    /* 圆形边框 */
    background-color: #fff;
    /* 背景颜色 */
    box-sizing: border-box;
    /* 让边框包含在元素内部 */
}

/* 创建选中时的黑点 */
input[type="radio"]:checked+label:after {
    content: "";
    position: absolute;
    left: 10px;
    top: 6px;
    /* 与第一行文字顶部对齐，稍微向下偏移以居中 */
    transform: translate(-50%, 0);
    width: 8px;
    /* 调整黑点的大小 */
    height: 8px;
    /* 调整黑点的大小 */
    background-color: black;
    /* 黑色 */
    border-radius: 50%;
    /* 圆形 */
}

input[type="radio"]+label:after {
    content: "";
    position: absolute;
    left: 10px;
    top: 5px;
    /* 与第一行文字顶部对齐，稍微向下偏移以居中 */
    transform: translate(-50%, 0);
    width: 0;
    /* 调整黑点的大小 */
    height: 0px;
    /* 调整黑点的大小 */
    background-color: black;
    /* 黑色 */
    border-radius: 50%;
    /* 圆形 */
}


.app-frame {
    padding: 10px;
}

/* purchase page */
.purchase-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.purchase-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.purchase-vip {
    width: 100px;
    margin-top: 10px;
}

.purchase-price {
    font-weight: var(--text-weight-bold);
    font-size: 2rem;
    padding: 10px 0px;
}

.purchase-title {
    padding: 10px;
}

.purchase-desc-title {
    padding: 10px;
    font-weight: var(--text-weight-bold);
    text-align: center;
}

.purchase-desc {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 0px;
    background-color: var(--secondary-color);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px;
    margin-top: 20px;
    flex: 1;
}

.purchase-desc-item {
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


/* feedback */
.feedback {
    display: flex;
    flex-direction: column;
}

.feedback-title {
    padding: 10px;
    font-size: 1.5rem;
    font-weight: var(--text-weight-middle);
}

.feedback-content {}

.feedback-content-textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    resize: none;
    border: 1px solid var(--divider-color);
    height: 200px;
    font-size: 1rem;
}


.hstack {
    display: flex;
    flex-direction: row;
}

.vstack {
    display: flex;
    flex-direction: column;
}

.hcenter {
    justify-content: center;
}

.vcenter {
    align-items: center;
}


/* habit item template */


.habit-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    border: 1px solid var(--divider-color);
    border-radius: 10px;
    padding: 15px;

    position: relative;
    overflow: hidden;

    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.1);
    background-color: white;
}

.habit-item-image-jie {
    width: 100px;
    height: 100px;
    background-image: url('/image/app/jie.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -13px;
}

.habit-item-image-lv {
    width: 100px;
    height: 100px;
    background-image: url('/image/app/lv.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -13px;
}


.habit-item-image-jie-gray {
    width: 100px;
    height: 100px;
    background-image: url('/image/app/jie.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -13px;
    /* 使用灰色滤镜让图片变灰 */
    filter: grayscale(100%);
    /* 可选：让背景色也变灰，如果图片有透明区域 */
    background-color: #e0e0e0;
}

.habit-item-image-lv-gray {
    width: 100px;
    height: 100px;
    background-image: url('/image/app/lv.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -13px;

    filter: grayscale(100%);
    background-color: #e0e0e0;
}


.habit-item-image-success {
    width: 100px;
    height: 100px;
    background-image: url('/image/app/congratulate.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -13px;
}

.habit-item-title {
    font-size: var(--font-size-normal-bigger);
    font-weight: bold;
    margin-bottom: 10px;
    padding-right: 90px;
}

.habit-item-description {
    font-size: var(--font-size-small);
    color: var(--text-secondary-color);
    margin-bottom: 10px;
    padding-right: 70px;
}

.habit-item-created-time {
    font-size: var(--font-size-small);
    color: var(--text-secondary-color);
}

.habit-item-day-stats {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.habit-item-day-stat {
    height: 15px;
    width: 15px;
    margin-bottom: 5px;
}

.habit-item-remarks {
    padding: 10px 0px 0px 0px;
    font-weight: bold;
}

.habit-item-last-habit-log {
    background-color: var(--divider-color);
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    font-size: var(--font-size-small);
    color: var(--text-secondary-color);
}


/* habit card */
.habit-detail-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    box-shadow: 0px 3px 10px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 15px;

    position: relative;
    overflow: hidden;

    margin-top: 20px;
}

.habit-detail-header-1 {
    background-color: var(--color-1);
    color: white;
}

.habit-detail-header-2 {
    background-color: var(--color-2);
    color: white;
}

.habit-detail-header-image-jie {
    width: 100px;
    height: 100px;
    background-image: url('/image/app/jie.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -20px;
}

.habit-detail-header-image-lv {
    width: 100px;
    height: 100px;
    background-image: url('/image/app/lv.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    position: absolute;
    top: -10px;
    right: -20px;
}

.habit-detail-header-title {
    font-size: var(--font-size-normal-bigger);
    font-weight: bold;
    margin-bottom: 10px;
    padding-right: 65px;
    word-break: break-all;
    word-wrap: break-word;
}

.habit-detail-header-title-description {
    font-size: var(--font-size-middle);
    color: var(--text-secondary-color);
    margin-top: 0px;
    padding-right: 60px;
    word-break: break-all;
    line-height: 1.5;
}

.habit-detail-header-title-description-1 {
    color: white;
}

.habit-detail-header-title-description-2 {
    color: white;
}

.habit-detail-header-user-info {
    font-size: var(--font-size-small);
    color: white;
    margin-top: 10px;
}


.habit-detail-header-start-date {
    font-size: var(--font-size-middle);
    color: var(--text-secondary-color);
    margin-top: 10px;
    color: white;
}

.habit-detail-due-days {
    font-size: var(--font-size-small);
    color: white;
    margin-top: 10px;
    font-weight: bold;
}

/* habit log  */

.habit-detail-log-item {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 3px 0px 10px 0px;
    border-bottom: 1px solid var(--divider-color);
    align-items: flex-start;
}

.habit-detail-log-item-left {
    width: 200px;
    display: flex;
    width: 100px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    font-size: var(--font-size-small);
}

.habit-detail-log-item-time {
    display: flex;
    flex-direction: column;
    font-size: var(--font-size-small);
    color: var(--text-secondary-color);
}

.habit-detail-log-item-content {
    padding: 0px 10px;
    flex: 1;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.habit-detail-log-item-1 {
    /* background-color: var(--color-1); */
    color: black;
}

.habit-detail-log-item-2 {
    /* background-color: var(--color-2); */
    color: black;
}

.habit-detail-log-item-image {
    margin-top: 10px;
}

.habit-detail-log-title {
    font-size: var(--font-size-normal);
    font-weight: bold;
    padding-top: 20px;
    text-align: center;
    background-color: white;
}


.habit-detail-log-item-comment {
    color: #154D71;
    margin-top: 5px;
}

.habit-detail-log-item-comment-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.habit-detail-log-item-comment-item {
    font-size: var(--font-size-middle-smaller);
    color: black;
    margin-bottom: 8px;
}

.habit-detail-log-item-comment-item-user-name {
    font-weight: bold;
    color: #27548A;
}


/* 弹窗动画样式 */
.popup-animation {
    transform: scale(0.3);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.popup-animation.show {
    transform: scale(1);
    opacity: 1;
}

.popup-animation.hide {
    transform: scale(0.3);
    opacity: 0;
}


/* medal aquire popup */
.medal-aquire-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.medal-aquire-popup-container {
    width: 90%;
    background-color: white;
    font-size: var(--font-size-middle);
    padding: 30px 20px;
    border-radius: 5px;
    color: var(--font-dark-color);
    box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.popup-emoticon div {
    font-size: var(--font-size-extra-large);
    padding: 8px;
}