:root {
    --primary-color: #3b82f6;
    --bg-color: #f5f6f8;
    --nav-text-color: #929292;
    --text-color: #333;
    --muted-color: #888;
}

html,
body {
    margin: 0 !important;
    width: 100% !important;
    overflow-x: hidden;
}

body {
    padding: 0 !important;
    padding-bottom: 70px !important;
    background-color: var(--bg-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
}

.my-page {
    width: 100%;
}

.page-header {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.page-header .title {
    font-size: 17px;
    font-weight: 700;
}

.user-card {
    background: #fff;
    padding: 28px 20px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.u-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    margin-right: 15px;
    flex: 0 0 auto;
    background: #eef2f7;
}

.u-avatar-empty {
    box-shadow: none;
}

.u-main {
    min-width: 0;
}

.u-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.u-group {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    padding: 2px 8px;
    border-radius: 10px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.my-login-page {
    min-height: calc(100vh - 50px);
    background: #fff;
}

.android-login-header {
    position: relative;
    height: 196px;
    box-sizing: border-box;
    padding-top: 62px;
    background: #2b7acd;
    color: #fff;
    text-align: center;
}

.android-login-back {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 20px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
}

.android-login-back:hover,
.android-login-back:focus {
    color: #fff;
    text-decoration: none;
}

.android-login-logo {
    display: block;
    height: 54px;
    color: #fff;
    font-family: "Microsoft YaHei", SimHei, Arial, sans-serif;
    font-size: 23px;
    font-weight: 900;
    line-height: 54px;
    margin: 0 auto 4px;
}

.android-login-title {
    height: 30px;
    color: #fff;
    font-size: 16px;
    line-height: 30px;
}

.android-login-box {
    padding: 10px 15px 0;
    background: #fff;
}

.login-error {
    margin-bottom: 10px;
    padding: 9px 10px;
    border: 1px solid #fecaca;
    border-radius: 4px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 14px;
    line-height: 1.45;
}

.my-login-form {
    margin: 0;
}

.android-login-fields {
    background: #fff;
}

.android-login-fields input,
.android-answer-row input {
    width: 100%;
    height: 45px;
    display: block;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #eee;
    outline: 0;
    background: #fff;
    color: #333;
    font-family: "Microsoft YaHei", Helvetica, sans-serif;
    font-size: 14px;
    line-height: 45px;
}

.android-login-fields input::placeholder,
.android-answer-row input::placeholder {
    color: #777;
    opacity: 1;
}

.android-question-row {
    position: relative;
    height: 45px;
    display: flex;
    align-items: center;
    margin: 0;
    border-bottom: 1px solid #eee;
    color: #333;
    font-family: "Microsoft YaHei", Helvetica, sans-serif;
    font-size: 14px;
    line-height: 45px;
}

.android-question-row span {
    min-width: 0;
    flex: 1;
    padding-right: 32px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.android-question-row select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 45px;
    opacity: 0;
}

.android-question-row .bi {
    position: absolute;
    right: 2px;
    color: #c8c8c8;
    font-size: 16px;
    pointer-events: none;
}

.android-answer-row {
    display: block;
    margin: 0;
}

.btn-login {
    width: 100%;
    height: 44px;
    display: block;
    margin-top: 17px;
    border: 0;
    border-radius: 6px;
    background: #2b7acd;
    color: #fff;
    font-family: "Microsoft YaHei", Helvetica, sans-serif;
    font-size: 16px;
    line-height: 44px;
    text-align: center;
}

.btn-login:active {
    background: #246ab4;
}

.login-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 27px;
    font-family: "Microsoft YaHei", Helvetica, sans-serif;
    font-size: 14px;
    line-height: 22px;
}

.login-links a {
    color: #333;
    text-decoration: none;
}

.login-links a:first-child {
    color: #f06b75;
}

.menu-list {
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    color: var(--text-color);
    font-size: 15px;
    text-decoration: none;
}

.menu-item:hover,
.menu-item:focus {
    color: var(--text-color);
    text-decoration: none;
}

.menu-item:active {
    background: #f9f9f9;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-title {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: #333;
}

.menu-title i {
    color: var(--primary-color);
    font-size: 18px;
    margin-right: 9px;
}

.item-val {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted-color);
    font-size: 20px;
    line-height: 1;
    flex: 0 0 auto;
}

.item-count {
    min-width: 2ch;
    text-align: right;
}

.item-val .bi {
    color: #91a0af;
    font-size: 20px;
    line-height: 1;
}

.btn-logout {
    display: block;
    width: calc(100% - 30px);
    margin: 20px 15px;
    background: #fff;
    color: #ef4444;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    border: 1px solid #eee;
}

.btn-logout:active {
    background: #fef2f2;
}

.bar-tab {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--nav-text-color);
}

.tab-item.active {
    color: var(--primary-color);
}

.tab-item i {
    font-size: 20px;
    line-height: 1;
}

.tab-label {
    font-size: 11px;
    margin-top: 2px;
}

.page-header-list {
    position: relative;
    justify-content: center;
}

.header-back,
.header-action {
    position: absolute;
    top: 0;
    height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
}

.header-back {
    left: 12px;
    font-size: 22px;
}

.header-action {
    right: 14px;
    font-size: 14px;
}

.header-action-empty {
    width: 32px;
}

.header-back:hover,
.header-action:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.list-summary {
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: var(--muted-color);
    font-size: 13px;
    background: #fff;
    border-bottom: 1px solid #f1f1f1;
}

.my-list {
    background: #fff;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 102px;
    padding: 10px 12px;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    background: #fff;
}

.list-item:hover,
.list-item:focus {
    color: var(--text-color);
    text-decoration: none;
}

.list-item:active {
    background: #f8fafc;
}

.list-item.is-deleted {
    opacity: 0.72;
}

.item-cover {
    width: 60px;
    height: 80px;
    flex: 0 0 60px;
    overflow: hidden;
    border-radius: 4px;
    background: #edf0f3;
}

.item-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deleted-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: #a5acb5;
    font-size: 12px;
    text-align: center;
    background: #f7f7f8;
    border: 1px solid #eceef1;
    box-sizing: border-box;
}

.item-info {
    min-width: 0;
    flex: 1;
}

.item-title {
    margin-bottom: 5px;
    color: #222;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow-wrap: anywhere;
}

.item-meta,
.item-extra {
    margin-top: 3px;
    color: #8a93a0;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.item-extra {
    color: var(--primary-color);
}

.item-price {
    margin-top: 3px;
    color: #ef4444;
    font-size: 13px;
    font-weight: 700;
}

.item-arrow {
    flex: 0 0 auto;
    color: #b5bec8;
    font-size: 18px;
}

.no-data {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #98a2ad;
    font-size: 14px;
    background: #fff;
}

.no-data-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f2f5f8;
    color: #aab4bf;
    font-size: 24px;
}

.my-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 14px 10px 18px;
    background: #fff;
}

.my-pagination a,
.my-pagination strong {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #d9dee5;
    border-radius: 4px;
    color: #333;
    font-size: 13px;
    text-decoration: none;
    background: #fff;
}

.my-pagination strong {
    color: #fff;
    border-color: var(--primary-color);
    background: var(--primary-color);
}
