/* ===== 全局颜色变量 ===== */
:root {
    --primary-color: #198DFE;
    --main-back-color: #F5F5F5;
    --secondary-color: #FFBF00;
    --danger-color: #FF4757;
    --success-color: #2ED47A;
    --dark-color: #333;
    --light-color: #F8F8F8;
    --gray-color: #8C8C8C;
    --border-color: #e8e8e8;
    --placeholder: #999;
    --hover: #f0f0f0;
    --shadow-color: rgba(0, 0, 0, 0.12);
    --text-color: #101010;

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: var(--light-color);
    min-height: 100vh;
    padding-bottom: 60px;
}


.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    display: flex;
    z-index: 100;
}

.tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.tab-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.tab-text {
    font-size: 12px;
    color: #999;
}

.tab-item.active .tab-text {
    color: var(--primary-color);
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}

.tier-grid {
    /* 用 flex 替代 grid */
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
}

.tier-card {
    background: var(--light-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    flex: 0 1 calc(50% - 8px);
}

.tier-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.tier-image-box {
    width: 100%;
    position: relative;
    padding-top: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: var(--main-back-color);
}

.tier-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 为列表增加响应式布局，自动适配手机、平板和电脑 */
/* 平板：3列 */
@media (min-width: 768px) {
    .tier-card {
        flex: 0 1 calc(33.33% - 11px);
    }
}

/* 电脑：4列 */
@media (min-width: 1200px) {
    .tier-card {
        flex: 0 1 calc(25% - 12px);
    }
}

.tier-name {
    padding: 12px 0;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}


.status-bar {
    height: 44px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 0px;
    font-size: 14px;
    color: black;
}

.status-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-bar-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-bar-back {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
}

.status-bar-title {
    font-size: 18px;
    color: var(--text-color);
    font-family: Roboto-regular;
}


.nav-bar {
    height: 56px;
    background: white;
    display: flex;
    align-items: center;
    padding: 0 16px;
    position: relative;
}

.nav-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: black;
}

.nav-title-view {
    width: 4px;
    height: 20px;
    background-color: var(--primary-color);
    border-radius: 16px;
}

.login-btn {
    width: 100%;
    background: var(--primary-color);
    border: none;
    border-radius: 34px;
    color: white;
    font-size: 16px;
    padding: 15px 0px;
    font-weight: 500;
    transition: all 0.3s;
    margin-bottom: 16px;
}

.login-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* .login-btn:active {
    transform: translateY(0);
} */

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.one-click-login-btn {
    width: 100%;
    background-color: rgba(244, 246, 248, 1);
    padding: 15px 0px;
    border: none;
    border-radius: 34px;
    color: rgba(0, 0, 0, 1);
    font-size: 16px;
    transition: all 0.3s;
}

.one-click-login-btn:hover {
    background: var(--hover);
}

.one-click-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.product-points {
    font-size: 14px;
    color: var(--danger-color);
    font-weight: 600;
}

.modal-btn-group button {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
}

/* 弹窗遮罩 */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
}

.modal-img {
    display: block;
    /*  自适应：最大宽高，不拉伸 */
    margin: -55px auto 0px;

    /* 大屏最多 100px */
    max-width: 100px;
    /* 小屏按视口比例缩小 */
    width: 20vw;
    /* 高度自动，保持比例 */
    height: auto;
    /* 防止拉伸 */
    object-fit: contain;
}

/* 确认弹窗主体 */
.confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    background: linear-gradient(180.31deg, var(--primary-color) -11.17%, rgba(255, 255, 255, 1) 25.43%, rgba(255, 255, 255, 1) 99.73%);
    border-radius: 12px;
    z-index: 9999;
    padding: 25px 20px;
    display: none;
}

/* 提示标题 */
.modal-hint {
    font-size: 20px;
    color: var(--text-colorr);
    text-align: center;
    font-family: Roboto-bold;
    margin-bottom: 20px;
}

/* 提示文字 */
.modal-text {
    font-size: 14px;
    color: var(--dark-color);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 31px;
    font-family: Roboto-regular;
}

/* 按钮组 */
.modal-btn-group {
    display: flex;
    gap: 12px;
}

/* 取消按钮 */
.btn-cancel {
    background: #fff !important;
    border: 1px solid #43A2FF !important;
    color: #666;
}

/* 确定按钮 */
.btn-confirm {
    background: var(--primary-color);
    color: #fff;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
}