/* ========== 基础布局 ========== */
#roots {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f0f2f5;
    overflow: hidden;
}

/* ========== 顶部用户信息 ========== */
.header {
    display: flex;
    align-items: center;
    padding: 0.3rem 0.32rem;
    background: linear-gradient(135deg, #E85D55 0%, #ED6B63 50%, #F19083 100%);
    color: #fff;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 2rem;
    height: 2rem;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.header-info {
    flex: 1;
}

.header-name {
    font-size: 0.34rem;
    font-weight: 700;
    margin-bottom: 0.06rem;
    letter-spacing: 0.02rem;
}

.header-school,
.header-major {
    font-size: 0.22rem;
    opacity: 0.88;
    line-height: 1.4;
}

.header-edit-btn {
    font-size: 0.22rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 0.1rem 0.2rem;
    border-radius: 0.4rem;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.2s;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(4px);
}

.header-edit-btn:active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255,255,255,0.8);
}

/* ========== Tab切换 ========== */
.tab-bar {
    display: flex;
    background: #fff;
    flex-shrink: 0;
    padding: 0.06rem 0.16rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    z-index: 10;
}

.tab-item {
    flex: 1;
    flex-shrink: 0;
    text-align: center;
    padding: 0.2rem 0.06rem 0.18rem;
    font-size: 0.24rem;
    color: #8c8c8c;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.04rem;
}

.tab-icon {
    width: 0.36rem;
    height: 0.36rem;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.45;
    transition: opacity 0.3s;
}

.tab-item.active .tab-icon {
    opacity: 1;
}

/* SVG 图标用 CSS mask */
.tab-icon-home {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E") no-repeat center / contain;
    background: #8c8c8c;
}

.tab-item.active .tab-icon-home {
    background: #EB5B53;
}

.tab-icon-invite {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E") no-repeat center / contain;
    background: #8c8c8c;
}

.tab-item.active .tab-icon-invite {
    background: #EB5B53;
}

.tab-icon-product {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41 0-.55-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z'/%3E%3C/svg%3E") no-repeat center / contain;
    background: #8c8c8c;
}

.tab-item.active .tab-icon-product {
    background: #EB5B53;
}

.tab-icon-coupon {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12v6c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2v-6c1.1 0 2-.9 2-2s-.9-2-2-2V4c0-1.1.9-2 2-2h12c1.1 0 2 .9 2 2v4c-1.1 0-2 .9-2 2s.9 2 2 2zm-2.5 1c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 12v6c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2v-6c1.1 0 2-.9 2-2s-.9-2-2-2V4c0-1.1.9-2 2-2h12c1.1 0 2 .9 2 2v4c-1.1 0-2 .9-2 2s.9 2 2 2zm-2.5 1c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z'/%3E%3C/svg%3E") no-repeat center / contain;
    background: #8c8c8c;
}

.tab-item.active .tab-icon-coupon {
    background: #EB5B53;
}

.tab-icon-team {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E") no-repeat center / contain;
    background: #8c8c8c;
}

.tab-item.active .tab-icon-team {
    background: #EB5B53;
}

.tab-item.active {
    color: #EB5B53;
    font-weight: 600;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0.5rem;
    height: 3px;
    background: #EB5B53;
    border-radius: 1.5px;
}

/* ========== Tab内容区 ========== */
.tab-content {
    flex: 1;
    overflow-y: auto;
    padding: 0.24rem 0.24rem;
    -webkit-overflow-scrolling: touch;
}

.tab-content::-webkit-scrollbar {
    width: 0;
}

/* ========== 分区标题 ========== */
.section-title-bar {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.2rem;
    padding: 0 0.04rem;
}

.section-title {
    font-size: 0.34rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.06rem;
}

.section-subtitle {
    font-size: 0.22rem;
    color: #999;
}

/* ========== 积分卡片 ========== */
.points-card {
    background: linear-gradient(145deg, #E85D55 0%, #ED6B63 35%, #F19083 70%, #F5A99E 100%);
    border-radius: 0.24rem;
    padding: 0.4rem 0.16rem;
    margin-bottom: 0.24rem;
    box-shadow: 0 8px 24px rgba(232, 93, 85, 0.3), 0 2px 6px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* 顶部装饰光晕 */
.points-card::before {
    content: '';
    position: absolute;
    top: -35%;
    right: -15%;
    width: 2.4rem;
    height: 2.4rem;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* 底部装饰光点 */
.points-card::after {
    content: '';
    position: absolute;
    bottom: -25%;
    left: -8%;
    width: 1.8rem;
    height: 1.8rem;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.points-card-top {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.points-item {
    text-align: center;
    flex: 1;
    padding: 0.06rem 0.04rem;
}

.points-num {
    font-size: 0.34rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.1rem;
    letter-spacing: 0.02rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.points-num.primary {
    font-size: 0.36rem;
    color: #FFE066;
    text-shadow: 0 2px 6px rgba(255, 224, 102, 0.4);
}

.points-label {
    font-size: 0.2rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    letter-spacing: 0.01rem;
    white-space: nowrap;
}

/* 待结算凸出高亮 */
.settle-highlight {
    background: rgba(255,255,255,0.16);
    border-radius: 0.14rem;
    padding: 0.14rem 0.08rem;
    margin: -0.08rem 0;
    box-shadow: 0 2px 14px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.15);
}

.settle-highlight .settle-num {
    font-size: 0.4rem;
    font-weight: 800;
    color: #FFE066;
    text-shadow: 0 2px 8px rgba(255, 224, 102, 0.5);
}

.settle-highlight .points-label {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.points-divider {
    width: 1px;
    height: 0.6rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.08) 100%);
    flex-shrink: 0;
}

/* ========== 积分明细 ========== */
.detail-section {
    background: #fff;
    border-radius: 0.2rem;
    padding: 0.24rem 0.28rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.16rem;
    padding-bottom: 0.16rem;
    border-bottom: 1px solid #f0f0f0;
}

.detail-title {
    font-size: 0.32rem;
    font-weight: 700;
    color: #1a1a1a;
}

.month-input {
    border: 1px solid #e8e8e8;
    border-radius: 0.08rem;
    padding: 0.1rem 0.14rem;
    font-size: 0.22rem;
    color: #666;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s;
}

.month-input:focus {
    border-color: #EB5B53;
}

.detail-list {
    max-height: 6rem;
    overflow-y: auto;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 0;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.15s;
}

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

.detail-item-left {
    flex: 1;
}

.detail-item-time {
    font-size: 0.26rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 0.04rem;
}

.detail-item-type {
    font-size: 0.2rem;
    color: #999;
}

.detail-item-right {
    font-size: 0.3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.detail-item-right.income {
    color: #EB5B53;
}

.detail-item-right.expense {
    color: #aaa;
}

/* ========== 产品列表 ========== */
.product-search-bar {
    margin-bottom: 0.2rem;
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 0.2rem;
    z-index: 1;
    pointer-events: none;
}

.product-search-input {
    width: 100%;
    height: 0.76rem;
    border: 1.5px solid #e8e8e8;
    border-radius: 0.4rem;
    padding: 0 0.2rem 0 0.7rem;
    font-size: 0.24rem;
    color: #333;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.product-search-input:focus {
    border-color: #EB5B53;
    box-shadow: 0 1px 8px rgba(235, 91, 83, 0.1);
}

.product-search-input::placeholder {
    color: #bbb;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
}

.product-item {
    background: #fff;
    border-radius: 0.2rem;
    padding: 0.24rem;
    display: flex;
    align-items: center;
    gap: 0.16rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: transform 0.15s, box-shadow 0.15s;
    border: 1px solid #f0f0f0;
}

.product-item:active {
    transform: scale(0.985);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.product-name {
    font-size: 0.26rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.4;
    word-break: break-all;
}

.product-sub-row {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    flex-wrap: wrap;
}

.product-type-tag {
    font-size: 0.18rem;
    color: #fff;
    background: linear-gradient(135deg, #EB5B53, #f08a7e);
    padding: 0.04rem 0.12rem;
    border-radius: 0.06rem;
    flex-shrink: 0;
    font-weight: 500;
}

.product-rate {
    font-size: 0.2rem;
    color: #999;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.1rem;
}

.product-original-price {
    font-size: 0.22rem;
    color: #c0c0c0;
    text-decoration: line-through;
}

.product-price {
    font-size: 0.32rem;
    font-weight: 800;
    color: #EB5B53;
}

.product-commission {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.commission-tag {
    font-size: 0.2rem;
    color: #fff;
    background: linear-gradient(135deg, #FF9800, #FFB74D);
    padding: 0.04rem 0.12rem;
    border-radius: 0.06rem;
    font-weight: 500;
}

.commission-num {
    font-size: 0.26rem;
    font-weight: 700;
    color: #FF9800;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex-shrink: 0;
}

.product-btn {
    width: 1.6rem;
    height: 0.6rem;
    background: linear-gradient(135deg, #EB5B53, #f08a7e);
    color: #fff;
    font-size: 0.24rem;
    font-weight: 600;
    border-radius: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(235, 91, 83, 0.25);
}

.product-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(235, 91, 83, 0.15);
}

/* ========== 人员列表 ========== */
.member-list {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.member-item {
    background: #fff;
    border-radius: 0.16rem;
    padding: 0.2rem 0.24rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    border: 1px solid #f0f0f0;
}

.member-avatar-placeholder {
    width: 0.76rem;
    height: 0.76rem;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #EB5B53, #f08a7e);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(235, 91, 83, 0.2);
}

.member-avatar-placeholder span {
    font-size: 0.32rem;
    font-weight: 700;
    color: #fff;
}

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

.member-name {
    font-size: 0.28rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.04rem;
}

.member-detail-row {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 0.04rem;
    flex-wrap: wrap;
}

.member-school {
    font-size: 0.22rem;
    color: #666;
}

.member-major {
    font-size: 0.22rem;
    color: #666;
}

.member-time {
    font-size: 0.2rem;
    color: #aaa;
}

/* ========== 邀请二维码卡片 ========== */
.invite-card {
    background: #fff;
    border-radius: 0.2rem;
    padding: 0.28rem;
    margin-bottom: 0.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.invite-card-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.invite-card-title {
    font-size: 0.3rem;
    font-weight: 700;
    color: #1a1a1a;
}

.invite-card-download {
    font-size: 0.22rem;
    color: #EB5B53;
    cursor: pointer;
    padding: 0.08rem 0.16rem;
    border: 1px solid #EB5B53;
    border-radius: 0.4rem;
    transition: all 0.2s;
    font-weight: 500;
}

.invite-card-download:active {
    background: #FFF0EE;
}

.invite-qrcode {
    width: 3.6rem;
    height: 3.6rem;
    margin-bottom: 0.2rem;
    padding: 0.12rem;
    background: #fafafa;
    border-radius: 0.12rem;
    box-sizing: border-box;
}

.invite-qrcode img {
    width: 100%;
    height: 100%;
    border-radius: 0.08rem;
    display: block;
}

.invite-card-hint {
    font-size: 0.22rem;
    color: #999;
    text-align: center;
}

/* ========== 产品推广注册码列表 ========== */
.promote-code-app {
    margin-top: 0.2rem;
}

.promote-code-section {
    background: #fff;
    border-radius: 0.2rem;
    padding: 0.24rem 0.28rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
}

.promote-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.2rem;
    padding-bottom: 0.16rem;
    border-bottom: 1px solid #f0f0f0;
    gap: 0.16rem;
}

.promote-code-title-bar {
    flex: 1;
    min-width: 0;
}

.promote-code-title {
    font-size: 0.3rem;
    font-weight: 700;
    color: #1a1a1a;
    display: block;
    margin-bottom: 0.04rem;
}

.promote-code-subtitle {
    font-size: 0.2rem;
    color: #999;
    display: block;
}

.promote-code-add-btn {
    flex-shrink: 0;
    padding: 0.14rem 0.24rem;
    background: linear-gradient(135deg, #EB5B53, #f08a7e);
    color: #fff;
    font-size: 0.24rem;
    font-weight: 600;
    border-radius: 0.4rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(235, 91, 83, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.promote-code-add-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(235, 91, 83, 0.15);
}

.promote-code-list {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    max-height: 6rem;
    overflow-y: auto;
}

.promote-code-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 0.22rem;
    background: #fafafa;
    border-radius: 0.12rem;
    border: 1px dashed #e0e0e0;
    transition: background 0.15s;
}

.promote-code-item:active {
    background: #f5f5f5;
}

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

.promote-code-text {
    font-size: 0.3rem;
    font-weight: 700;
    color: #EB5B53;
    letter-spacing: 0.04rem;
    word-break: break-all;
    line-height: 1.3;
}

.promote-code-text.placeholder {
    color: #bbb;
    font-weight: 500;
}

.promote-code-time {
    font-size: 0.2rem;
    color: #aaa;
    margin-top: 0.06rem;
}

.promote-code-actions {
    flex-shrink: 0;
    display: flex;
    gap: 0.12rem;
    margin-left: 0.16rem;
}

.promote-code-copy-btn {
    padding: 0.1rem 0.2rem;
    font-size: 0.22rem;
    color: #fff;
    background: linear-gradient(135deg, #EB5B53, #f08a7e);
    border-radius: 0.3rem;
    cursor: pointer;
    transition: transform 0.15s;
}

.promote-code-copy-btn:active {
    transform: scale(0.94);
}

.promote-code-download-btn {
    padding: 0.1rem 0.2rem;
    font-size: 0.22rem;
    color: #EB5B53;
    background: #fff;
    border: 1px solid #EB5B53;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.promote-code-download-btn:active {
    transform: scale(0.94);
    background: #FFF0EE;
}

/* ========== 二维码弹窗 ========== */
.qrcode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.qrcode-modal-content {
    background: #fff;
    border-radius: 0.24rem;
    padding: 0.44rem 0.5rem;
    text-align: center;
    width: calc(100% - 1.6rem);
    max-width: 480px;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.qrcode-title {
    font-size: 0.34rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.32rem;
}

.qrcode-img {
    width: 3.6rem;
    height: 3.6rem;
    margin: 0 auto 0.24rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.12rem;
    background: #fafafa;
    border-radius: 0.12rem;
    box-sizing: border-box;
}

.qrcode-img canvas,
.qrcode-img img {
    width: 100%;
    height: 100%;
    border-radius: 0.08rem;
}

.qrcode-product-name {
    font-size: 0.26rem;
    color: #666;
    margin-bottom: 0.08rem;
    font-weight: 500;
}

.qrcode-hint {
    font-size: 0.22rem;
    color: #999;
    margin-bottom: 0.32rem;
}

.qrcode-close {
    background: linear-gradient(135deg, #EB5B53, #f08a7e);
    color: #fff;
    font-size: 0.28rem;
    font-weight: 600;
    padding: 0.18rem 0;
    border-radius: 0.4rem;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(235, 91, 83, 0.25);
    transition: all 0.2s;
}

.qrcode-close:active {
    opacity: 0.8;
    transform: scale(0.97);
}

.qrcode-actions {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 0.32rem;
}

.qrcode-btn {
    flex: 1;
    text-align: center;
    padding: 0.18rem 0;
    font-size: 0.26rem;
    font-weight: 600;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: all 0.2s;
}

.qrcode-btn.download-btn {
    background: #fff;
    color: #EB5B53;
    border: 1.5px solid #EB5B53;
}

.qrcode-btn.download-btn:active {
    background: #FFF0EE;
    transform: scale(0.97);
}

/* ========== 优惠券领取确认弹窗 ========== */
.coupon-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.coupon-confirm-content {
    background: #fff;
    border-radius: 0.24rem;
    padding: 0.5rem 0.5rem 0.36rem;
    width: calc(100% - 1.2rem);
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: slideUp 0.25s ease;
}

.coupon-confirm-icon {
    font-size: 0.9rem;
    margin-bottom: 0.16rem;
}

.coupon-confirm-title {
    font-size: 0.34rem;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 0.28rem;
}

.coupon-confirm-info {
    background: linear-gradient(135deg, #EB5B53, #f08a7e);
    border-radius: 0.2rem;
    padding: 0.32rem 0.5rem;
    text-align: center;
    margin-bottom: 0.24rem;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 16px rgba(235, 91, 83, 0.2);
}

.coupon-confirm-amount {
    font-size: 0.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.coupon-confirm-amount span {
    font-size: 0.76rem;
}

.coupon-confirm-name {
    font-size: 0.26rem;
    color: rgba(255,255,255,0.85);
    margin-top: 0.12rem;
    line-height: 1.3;
    font-weight: 500;
}

.coupon-confirm-hint {
    font-size: 0.22rem;
    color: #999;
    margin-bottom: 0.32rem;
    text-align: center;
    line-height: 1.5;
}

.coupon-confirm-btns {
    display: flex;
    gap: 0.2rem;
    width: 100%;
}

.coupon-confirm-btn {
    flex: 1;
    text-align: center;
    padding: 0.22rem 0;
    font-size: 0.28rem;
    font-weight: 600;
    border-radius: 0.4rem;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}

.coupon-confirm-btn:active {
    transform: scale(0.96);
    opacity: 0.85;
}

.coupon-confirm-btn.cancel {
    background: #f5f5f5;
    color: #888;
}

.coupon-confirm-btn.confirm {
    background: linear-gradient(135deg, #EB5B53, #f08a7e);
    color: #fff;
    box-shadow: 0 4px 14px rgba(235, 91, 83, 0.3);
}

/* ========== 小程序列表（注册邀请） ========== */
.miniapp-list {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
}

.miniapp-item {
    background: #fff;
    border-radius: 0.2rem;
    padding: 0.24rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #f0f0f0;
    transition: transform 0.15s;
}

.miniapp-item:active {
    transform: scale(0.985);
}

.miniapp-icon {
    width: 0.96rem;
    height: 0.96rem;
    border-radius: 0.2rem;
    overflow: hidden;
    flex-shrink: 0;
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.miniapp-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.miniapp-name {
    font-size: 0.3rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.miniapp-action {
    flex-shrink: 0;
}

.miniapp-btn {
    padding: 0.16rem 0.28rem;
    background: linear-gradient(135deg, #EB5B53, #f08a7e);
    color: #fff;
    font-size: 0.24rem;
    font-weight: 600;
    border-radius: 0.4rem;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(235, 91, 83, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.miniapp-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(235, 91, 83, 0.15);
}

/* ========== 优惠券列表 ========== */
.coupon-list {
    display: flex;
    flex-direction: column;
    gap: 0.16rem;
}

.coupon-item {
    background: #fff;
    border-radius: 0.2rem;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 1.7rem;
    border: 1px solid #f0f0f0;
}

.coupon-item:active {
    transform: scale(0.985);
}

.coupon-item.received {
    opacity: 0.65;
}

.coupon-item::before,
.coupon-item::after {
    content: '';
    position: absolute;
    width: 0.3rem;
    height: 0.3rem;
    background: #f0f2f5;
    border-radius: 50%;
    z-index: 2;
}

.coupon-item::before {
    top: -0.15rem;
    left: 1.5rem;
}

.coupon-item::after {
    bottom: -0.15rem;
    left: 1.5rem;
}

/* ========== 左侧金额区 ========== */
.coupon-left {
    width: 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(160deg, #E85D55 0%, #ED6B63 40%, #F19083 100%);
    position: relative;
    padding: 0.24rem 0.12rem;
}

.coupon-left::after {
    content: '';
    position: absolute;
    right: -0.04rem;
    top: 14%;
    bottom: 14%;
    width: 1px;
    background: repeating-linear-gradient(
        180deg,
        rgba(255,255,255,0.35) 0px,
        rgba(255,255,255,0.35) 4px,
        transparent 4px,
        transparent 8px
    );
}

.coupon-amount {
    display: flex;
    align-items: baseline;
}

.coupon-symbol {
    font-size: 0.24rem;
    font-weight: 700;
    color: #fff;
    margin-right: 0.02rem;
    opacity: 0.85;
}

.coupon-value {
    font-size: 0.48rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.01rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.coupon-label {
    font-size: 0.18rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.06rem;
    letter-spacing: 0.04rem;
}

/* ========== 中间信息区 ========== */
.coupon-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.22rem 0.2rem 0.22rem 0.26rem;
    gap: 0.06rem;
}

.coupon-title {
    font-size: 0.3rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coupon-subtitle {
    font-size: 0.2rem;
    color: #888;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.coupon-source {
    font-size: 0.18rem;
    color: #bbb;
    margin-top: 0.02rem;
}

/* 券码突出显示 */
.coupon-code-highlight {
    font-size: 0.28rem;
    font-weight: 700;
    color: #EB5B53;
    letter-spacing: 0.04rem;
    margin-top: 0.08rem;
}

/* ========== 右侧操作区 ========== */
.coupon-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.22rem 0 0.16rem;
    border-left: 1px dashed #e8e8e8;
}

.coupon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.26rem;
    background: linear-gradient(135deg, #EB5B53, #f08a7e);
    border-radius: 0.4rem;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(235, 91, 83, 0.28);
    transition: transform 0.15s, box-shadow 0.15s;
    min-width: 1.2rem;
}

.coupon-btn:active {
    transform: scale(0.93);
    box-shadow: 0 1px 5px rgba(235, 91, 83, 0.18);
}

.coupon-btn-text {
    color: #fff;
    font-size: 0.24rem;
    font-weight: 600;
}

.coupon-btn.received-btn {
    background: linear-gradient(135deg, #c0c0c0, #d4d4d4);
    box-shadow: none;
    cursor: default;
    padding: 0.14rem 0.2rem;
}

.coupon-btn.received-btn .coupon-btn-text {
    font-size: 0.2rem;
    font-weight: 500;
    color: #999;
}

/* ========== 通用 ========== */
.primary {
    color: #EB5B53 !important;
}

.data_null {
    text-align: center;
    padding: 1.2rem 0;
    font-size: 0.28rem;
    color: #bbb;
}
