
body {
	background:#fff;
}

/* App WebView 等：保证绝对定位子元素有参照高度，避免部分内核背景或层叠异常 */
.home {
	position: relative;
	width: 100%;
	min-height: 100%;
	min-height: 100vh;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
	padding-top: min(6.4rem, 36vh);
	padding-bottom: 2.2rem;
}

/* index */

.home .agent_top_bg{
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../images/agent/agent_bg.png) no-repeat;
    background-size: 100% auto;
}

.home .agent_top_bg_en{
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(../images/agent/agent_bg_en.png) no-repeat;
    background-size: 100% auto;
}

/* 邀请奖励首页：单卡片 + 流式排版（替代原 top_code / top_set 双绝对定位） */
.home .agent-index-card {
	position: relative;
	z-index: 2;
	width: 92%;
	margin: 0 auto 0.32rem;
	border-radius: 0.24rem;
	background: #fff;
	box-shadow: 0 0.06rem 0.28rem rgba(56, 31, 12, 0.1);
	overflow: hidden;
}
.home .agent-index-card__code {
	padding: 0.36rem 0.32rem 0.32rem;
	text-align: center;
	border-bottom: 1px solid #f2f2f2;
}
.home .agent-index-card__superior {
	padding: 0.28rem 0.36rem;
	border-bottom: 1px solid #f2f2f2;
}
.home .agent-index-card__superior .myagent {
	position: relative;
	min-height: 0.88rem;
	line-height: 0.88rem;
	font-size: 0.3rem;
}
.home .agent-index-card__superior .myagent::after {
	content: "";
	display: table;
	clear: both;
}
.home .agent-index-card__list {
	padding: 0 0.12rem 0.12rem;
}
.home .agent-index-btns {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-align-items: center;
	align-items: center;
	margin-top: 0.28rem;
	padding-bottom: 0.04rem;
}
.home .agent-index-btns--single {
	-webkit-flex-direction: column;
	flex-direction: column;
}
.home .agent-index-btns--single .copy,
.home .agent-index-btns--single .copy_invite_link,
.home .agent-index-btns--single .poster_share {
	margin: 0.1rem 0;
}
/* 邀请码页：描边胶囊按钮（与 .mycode 解耦，避免仅命中 .copy 时新按钮漏样式） */
.home .agent-index-btns .copy,
.home .agent-index-btns .copy_invite_link {
	margin: 0.12rem 0.14rem;
	width: auto;
	min-width: 2.6rem;
	padding: 0 0.36rem;
	display: -webkit-inline-flex;
	display: inline-flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
	color: #ff5878;
	font-weight: normal;
	line-height: 0.52rem;
	height: 0.52rem;
	border: 1px solid #ff5878;
	border-radius: 999px;
	font-size: 0.28rem;
	box-sizing: border-box;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	text-align: center;
	background: #fff;
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
}
.home .agent-index-btns .poster_share {
	margin: 0.12rem 0.14rem;
	width: auto;
	min-width: 2.6rem;
	padding: 0 0.36rem;
}
.home .li_l img{
   	width: 0.7rem;
   	height: 0.7rem;
   	margin-right: 0.28rem;
	vertical-align: middle;
}
.home .agent-icon-chip {
	display: inline-block;
	width: 0.7rem;
	height: 0.7rem;
	margin-right: 0.28rem;
	vertical-align: middle;
	border-radius: 50%;
	background: -webkit-linear-gradient(135deg, #ffb35c, #ff7a33);
	background: linear-gradient(145deg, #ffb35c, #ff7a33);
	box-shadow: 0 0.04rem 0.1rem rgba(255, 120, 50, 0.25);
	position: relative;
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
}
/* 双人形示意（白点） */
.home .agent-icon-chip--team::before {
	content: "";
	position: absolute;
	width: 0.14rem;
	height: 0.14rem;
	left: 0.18rem;
	top: 0.26rem;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0.2rem -0.04rem 0 -0.02rem #fff;
}
.home .top .myagent .li_r,
.home .agent-index-card__superior .myagent .li_r{
    float:right;
    font-weight:bold;
    max-width: 52%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home .top .myagent .agent_add .li_r,
.home .agent-index-card__superior .myagent .agent_add .li_r{
    font-weight:normal;
}
.home .list ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.home .list ul li.agent-list-row{
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    padding: 0.28rem 0.52rem 0.28rem 0.28rem;
    min-height: 1.08rem;
    border-top: 1px solid #f5f5f5;
    background: url("../images/right.png") no-repeat center right 0.2rem;
    background-size: 0.26rem;
    font-size: 0.3rem;
    box-sizing: border-box;
}
.home .list ul li.agent-list-row:first-child {
	border-top: none;
}
.home .list ul li.agent-list-row > a {
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    color: inherit;
}
.home .list ul li.agent-list-row .li_l {
	display: -webkit-inline-flex;
	display: inline-flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-flex: 1 1 auto;
	flex: 1 1 auto;
	min-width: 0;
	margin-right: 0.2rem;
}
.home .list ul li.agent-list-row .li_r {
    float: none;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    line-height: 1.2;
    color:#ff5878;
    font-weight:600;
    font-size: 0.28rem;
}
.home .list ul li .li_r.li_r--muted {
	color: #bbb !important;
	font-weight: 500 !important;
}

.home .mycode_title{
	line-height: 1.2;
	font-size: 0.32rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
    color: #222;
}
.home .mycode{
	line-height: 1.2;
	font-size: 0.32rem;
    font-weight: bold;
}
.home .mycode .code{
	display: block;
	margin-top: 0.08rem;
}
.home .mycode .code i{
	display:inline-block;
	width:0.62rem;
	height:0.62rem;
	text-align:center;
	line-height:0.62rem;
	border: 1px solid #d8d8d8;
	border-radius: 0.08rem;
	font-style: normal;
	margin: 0 0.05rem;
	background: #fafafa;
	color: #333;
}
.home .mycode .poster_share{
	color:#fff;
	font-weight:normal;
	line-height:0.52rem;
	height: 0.52rem;
	background-color: #ff854c;
	background-image: -webkit-linear-gradient(left, #ff854c, #ffab40);
	background-image: linear-gradient(90deg, #ff854c 0%, #ffab40 100%);
	border-radius: 999px;
	font-size: 0.28rem;
	text-align: center;
	box-sizing: border-box;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	-webkit-box-shadow: 0 0.06rem 0.16rem rgba(255, 133, 76, 0.35);
	box-shadow: 0 0.06rem 0.16rem rgba(255, 133, 76, 0.35);
}

.home .tips{
	position: relative;
	z-index: 2;
	color: #FFF;
	padding: 0.12rem 0.44rem 0.36rem;
    font-size: 0.24rem;
	line-height: 0.42rem;
	opacity: 0.98;
}

/* 下级分成 */
.profit{
    background:#fff;
}
.profit ul{
	padding-left:0.2rem;
}
.profit ul li{
	position:relative;
	padding:0.2rem 0 0.2rem  1.2rem;
	height:1.2rem;
	border-bottom: 1px solid #efefef;
}
.profit ul li .thumb{
	position:absolute;
	top:0.2rem;
	left:0;
	width:1rem;
	height:1rem;
	border-radius:50%;
}
.profit ul li .info{
	width:60%;
	line-height:0.6rem;
}
.profit ul li .info .name{
	color:#040404;
	font-size:0.32rem;
	white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.profit ul li .info .id{
	color:#aaaaaa;
}
.profit ul li .info2{
	position:absolute;
	top:0.2rem;
	right:0.2rem;
	width:2rem;
	height:1.2rem;
	line-height:0.6rem;
}
.profit ul li .info2 .icon{
	text-align:center;
}
.profit ul li .coin{
	text-align:center;
}

/* 设置邀请码 */

.setcode .agent_setcode_top{
	height:4rem;
	background:url("../images/agent/top_set.png") no-repeat center;
	background-size:auto 4rem;
}

.setcode .agent_setcode_top_en{
	height:4rem;
	background:url("../images/agent/top_set_en.png") no-repeat center;
	background-size:auto 4rem;
}

.setcode .mycode{
	color:#000;
	line-height:1rem;
	padding:0 0.2rem;
	font-size:0.32rem;
	text-align:center;
}
.setcode .mycode .code{
	position:relative;
	display:inline-block;
}
.setcode .mycode .code i{
	display:inline-block;
	width:0.6rem;
	height:0.6rem;
	text-align:center;
	line-height:0.6rem;
	color:#ff2d8e;
	border:1px solid #bababa;
	font-style: normal;	
	margin:0 0.04rem;
}
.setcode .mycode .code input{
	position:absolute;
	top:0;
	left:0;
	width:auto;
	height:auto;
	opacity: 0;
	z-index:-1;
	/*-webkit-touch-callout:none;
	-webkit-user-select:none;*/
	-khtml-user-select:none;
	-moz-user-select:none;
	-ms-user-select:none;
	user-select:none;
}
.setcode .mycode .copy i{
	display:inline-block;
	width:0.4rem;
	height:0.4rem;
	background:url("../images/agent/copy.png") no-repeat center;
	background-size:0.4rem;
	vertical-align: middle;
    margin-top: -0.06rem;
	margin-right:0.06rem;
}
.setcode .tips{
	padding:0.2rem;
	color:#9a9a9a;
	line-height:0.6rem;
}
.setcode .submit{
	width:60%;
	height:0.8rem;
	line-height:0.8rem;
	text-align:center;
	color:#fff;
	font-size:0.32rem;
	margin:0.4rem auto 0;
	border-radius:0.4rem;
}

/*下载页*/
.downapp_bg{
	width: 100%;
	min-height: 100vh;
	background: url(../images/agent/downapp_bg.png) no-repeat center center;
	background-size: cover;
}
.downapp_logo{
	margin: 0 auto;
	width: 1.3rem;
	height: 1.3rem;
	margin-top:1.5rem;
}
.downapp_logo img{
	width: 100%;
	height: 100%;
}
.downapp_name{
	width: 100%;
	text-align: center;
	color: #FFF;
	font-size: 0.4rem;
	margin-top: 0.4rem;
}
.downapp_desc{
	width: 100%;
	text-align: center;
	margin-top: 0.5rem;

}
.downapp_desc img{
	width: 90%;
	height: auto;
	max-width: 535px;
	max-height: 228px;
}

/* 下载页主按钮：白底圆角胶囊（div / a 共用，避免 a 标签被全局链色覆盖） */
.downapp_btn{
	position: fixed;
	left: 20%;
	width: 60%;
	height: 0.8rem;
	line-height: 0.8rem;
	margin: 0 auto;
	background: #fff;
	color: #ff854c !important;
	border-radius: 0.5rem;
	text-align: center;
	font-size: 0.35rem;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}
#downloadButton{
	bottom: 3rem;
}
a.downapp_btn.downapp_btn--web{
	bottom: 1.95rem;
	z-index: 11;
	display: block;
	text-decoration: none !important;
}
/* common.css 里 a:visited 等带 background:none，优先级会压过单独 .downapp_btn，须按状态写回白底 */
a.downapp_btn.downapp_btn--web:link,
a.downapp_btn.downapp_btn--web:visited,
a.downapp_btn.downapp_btn--web:hover,
a.downapp_btn.downapp_btn--web:active,
a.downapp_btn.downapp_btn--web:focus{
	background: #fff !important;
	background-color: #fff !important;
	color: #ff854c !important;
}
a.downapp_btn.downapp_btn--web:active{
	opacity: 0.92;
}

/* 我的下级 */
.agent-team-page {
	background: #f5f5f5;
	min-height: 100vh;
	padding-bottom: 0.4rem;
}
.agent-team-header {
	background: -webkit-linear-gradient(left, #ff5c8a, #ff4081);
	background: linear-gradient(90deg, #ff5c8a 0%, #ff4081 100%);
	padding: 0.24rem 0.32rem 0.36rem;
}
.agent-team-search {
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	background: #fff;
	border-radius: 999px;
	height: 0.72rem;
	padding: 0 0.28rem;
	box-sizing: border-box;
}
.agent-team-search input {
	-webkit-flex: 1;
	flex: 1;
	border: none;
	outline: none;
	font-size: 0.28rem;
	background: transparent;
	height: 0.72rem;
	line-height: 0.72rem;
}
.agent-team-filters {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-align-items: center;
	align-items: center;
	padding: 0.24rem 0.24rem 0.12rem;
	background: #fff;
	border-bottom: 1px solid #f0f0f0;
}
.agent-team-tab,
.agent-team-custom {
	border: none;
	background: transparent;
	font-size: 0.26rem;
	padding: 0.12rem 0.2rem;
	border-radius: 999px;
	color: #888;
	line-height: 1.2;
	-webkit-tap-highlight-color: transparent;
	margin-right: 0.16rem;
	margin-bottom: 0.16rem;
}
.agent-team-tab.on {
	color: #ff4081;
	background: rgba(255, 64, 129, 0.1);
	font-weight: 600;
}
.agent-team-filters .agent-team-custom {
	margin-left: auto;
	margin-right: 0;
	color: #666;
}
.agent-team-custom .caret {
	font-size: 0.22rem;
	opacity: 0.7;
}
.agent-team-custom-panel {
	background: #fff;
	padding: 0.24rem 0.32rem 0.32rem;
	border-bottom: 1px solid #f0f0f0;
}
.agent-team-custom-row {
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	margin-bottom: 0.2rem;
	font-size: 0.26rem;
}
.agent-team-custom-row label {
	width: 1.6rem;
	color: #666;
}
.agent-team-custom-row input[type="date"] {
	-webkit-flex: 1;
	flex: 1;
	border: 1px solid #e0e0e0;
	border-radius: 0.08rem;
	padding: 0.12rem;
	font-size: 0.26rem;
}
.agent-team-custom-ok {
	width: 100%;
	margin-top: 0.12rem;
	height: 0.72rem;
	line-height: 0.72rem;
	border: none;
	border-radius: 999px;
	background: -webkit-linear-gradient(left, #ff5c8a, #ff4081);
	background: linear-gradient(90deg, #ff5c8a 0%, #ff4081 100%);
	color: #fff;
	font-size: 0.3rem;
}
.agent-team-sortbar {
	display: -webkit-flex;
	display: flex;
	background: #ececec;
	padding: 0.2rem 0.08rem;
	font-size: 0.24rem;
	color: #666;
}
.agent-team-sort {
	-webkit-flex: 1;
	flex: 1;
	border: none;
	background: transparent;
	padding: 0.08rem;
	text-align: center;
	line-height: 1.3;
	-webkit-tap-highlight-color: transparent;
}
.agent-team-sort.on {
	color: #ff4081;
	font-weight: 600;
}
.agent-team-sort .sort-arrows {
	opacity: 0.5;
	font-size: 0.22rem;
	margin-left: 0.04rem;
}
.agent-team-list-wrap {
	background: #fff;
	min-height: 4rem;
}
.agent-team-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.agent-team-row {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-align-items: flex-start;
	align-items: flex-start;
	padding: 0.28rem 0.24rem;
	border-bottom: 1px solid #f2f2f2;
	position: relative;
}
.agent-team-avatar {
	width: 0.96rem;
	height: 0.96rem;
	border-radius: 50%;
	object-fit: cover;
	-webkit-flex-shrink: 0;
	flex-shrink: 0;
	margin-right: 0.2rem;
}
.agent-team-main {
	-webkit-flex: 1;
	flex: 1;
	min-width: 0;
}
.agent-team-name {
	font-size: 0.3rem;
	color: #222;
	margin: 0 0 0.08rem;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.agent-team-id {
	font-size: 0.24rem;
	color: #999;
	margin: 0;
}
.agent-team-invite {
	font-size: 0.22rem;
	color: #aaa;
	margin: 0.06rem 0 0;
}
.agent-team-stats {
	display: -webkit-flex;
	display: flex;
	width: 100%;
	margin-top: 0.2rem;
	padding-left: 1.16rem;
	box-sizing: border-box;
	-webkit-justify-content: space-between;
	justify-content: space-between;
}
.agent-team-stats .s {
	text-align: center;
	-webkit-flex: 1;
	flex: 1;
}
.agent-team-stats .s em {
	display: block;
	font-size: 0.28rem;
	font-style: normal;
	color: #333;
	font-weight: 600;
}
.agent-team-stats .s i {
	display: block;
	font-size: 0.22rem;
	color: #999;
	font-style: normal;
	margin-top: 0.06rem;
}
.agent-team-empty {
	text-align: center;
	padding: 1.2rem 0.4rem 2rem;
	color: #bbb;
	font-size: 0.28rem;
}
.agent-team-empty-icon {
	width: 2rem;
	height: 2rem;
	margin: 0 auto 0.32rem;
	border-radius: 0.16rem;
	background: -webkit-linear-gradient(top, #eee, #f7f7f7);
	background: linear-gradient(180deg, #eee 0%, #f7f7f7 100%);
	position: relative;
	opacity: 0.85;
}
.agent-team-empty-icon::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0.8rem;
	height: 1rem;
	margin: -0.55rem 0 0 -0.4rem;
	border: 0.06rem solid #ccc;
	border-radius: 0.08rem;
	background: #fafafa;
}
.agent-team-empty-icon::after {
	content: '';
	position: absolute;
	left: 58%;
	top: 42%;
	width: 0.5rem;
	height: 0.06rem;
	background: #bbb;
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
	border-radius: 1px;
	box-shadow: 0 0.14rem 0 #bbb;
}