@charset "utf-8";

* {
	box-sizing: border-box;
}

body {
	background: #f5f7f9;
	font-size: 14px;
	color: #333;
	line-height: 1.6;
}

.am-container {
	max-width: 640px;
	padding: 15px;
	margin: 0 auto;
}

/*首页*/
.home-wrap {
	padding-bottom: 70px;
}

.home-banner img {
	width: 100%;
	border-radius: 12px;
}

.home-title {
	font-size: 17px;
	font-weight: bold;
	margin: 20px 0 12px;
}

.home-cat-row {}

.home-cat-item {
	padding: 8px 6px;
}

.home-cat-card {
	background: #fff;
	border-radius: 12px;
	padding: 24px 8px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.cat-name {
	font-size: 15px;
	color: #222;
}

/*注册页*/
.reg-wrap {
	padding-bottom: 70px;
}

.reg-title {
	font-size: 18px;
	font-weight: bold;
	text-align: center;
	margin: 20px 0;
}

.reg-wrap .am-form-group {
	margin-bottom: 16px;
}

.reg-wrap input {
	border-radius: 8px;
	border: 1px solid #dde1e8;
}

.am-checkbox-wrap {
	margin: 20px 0;
}

/*登录页 */
.login-wrap {
	padding-bottom: 70px;
	padding-top: 40px;
}

.login-title {
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	margin-bottom: 30px;
}

.login-wrap input {
	border-radius: 8px;
	border: 1px solid #dde1e8;
}

/*文章列表 左图右文*/
.newslist-wrap {
	padding-bottom: 70px;
}

.newslist-title {
	font-size: 18px;
	font-weight: bold;
	margin: 16px 0;
}

.news-item {
	background: #fff;
	border-radius: 12px;
	padding: 12px;
	margin-bottom: 12px;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.news-img-box img {
	width: 100%;
	height: 90px;
	object-fit: cover;
	border-radius: 8px;
}

.news-noimg {
	width: 100%;
	height: 90px;
	background: #eee;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	color: #999;
}

.news-title {
	font-size: 15px;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-bottom: 4px;
}

.news-summary {
	font-size: 12px;
	color: #777;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-time {
	font-size: 11px;
	color: #aaa;
	margin-top: 6px;
}

/*文章详情*/
.newsshow-wrap {
	padding-bottom: 70px;
	background: #fff;
	border-radius: 12px;
	padding: 18px;
}

.newsshow-title {
	font-size: 18px;
	font-weight: bold;
	text-align: center;
	margin-bottom: 12px;
}

.newsshow-meta {
	font-size: 12px;
	color: #999;
	text-align: center;
	margin-bottom: 20px;
}

.newsshow-content img {
	max-width: 100% !important;
	height: auto;
}

/*会员中心*/
.member-wrap {
	padding-bottom: 70px;
}

.member-head {
	background: linear-gradient(135deg, #2671eb, #4293ff);
	color: #fff;
	padding: 30px 16px;
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
	text-align: center;
}

.avatar-box img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: 2px solid #fff;
}

.member-name {
	font-size: 17px;
	margin: 8px 0;
}

.money-val {
	font-size: 22px;
	font-weight: bold;
}

.member-menu {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	margin-top: 20px;
	list-style: none;
}

.member-menu li {
	border-bottom: 1px solid #f3f4f6;
}

.member-menu li:last-child {
	border-bottom: none;
}

.member-menu a {
	display: block;
	padding: 14px 16px;
	color: #333;
}

/*个人设置页*/
.personal-wrap {
	padding-bottom: 70px;
}

.personal-title {
	font-size: 17px;
	font-weight: bold;
	margin: 18px 0 8px;
}

.personal-divider {
	height: 1px;
	background: #ddd;
	margin: 24px 0;
}

/*账户提现页面*/
.account-wrap {
	padding-bottom: 70px;
}

.account-balance-card {
	background: linear-gradient(135deg, #17b871, #33d48a);
	border-radius: 12px;
	color: #fff;
	padding: 22px 18px;
	text-align: center;
	box-shadow: 0 3px 12px rgba(23, 184, 113, 0.25);
	margin-bottom: 20px;
}

.balance-label {
	font-size: 14px;
	opacity: 0.9;
}

.balance-value {
	font-size: 28px;
	font-weight: bold;
	margin-top: 6px;
}

.account-title {
	font-size: 16px;
	font-weight: bold;
	margin: 18px 0 10px;
}

.withdraw-form {
	background: #fff;
	padding: 14px;
	border-radius: 12px;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
	margin-bottom: 24px;
}

.log-item {
	background: #fff;
	border-radius: 10px;
	padding: 12px;
	margin-bottom: 10px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.log-type {
	font-size: 14px;
}

.log-time {
	font-size: 11px;
	color: #999;
}

.log-money {
	font-size: 16px;
	font-weight: bold;
}

.text-green {
	color: #00b42a;
}

.text-red {
	color: #f53f3f;
}

.log-status {
	font-size: 12px;
	color: #888;
}

/*底部tabbar全局*/
.home-tab-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 54px;
	background: #fff;
	display: flex;
	box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.08);
	z-index: 99;
	max-width: 640px;
	margin: 0 auto;
}

.tab-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #777;
	font-size: 12px;
	text-decoration: none;
}

.tab-item.active {
	color: #2671eb;
}

.tab-item i {
	font-size: 18px;
	margin-bottom: 2px;
}

.empty-tip {
	padding: 40px 0;
	color: #999;
}

.page-box {
	margin: 20px 0;
}

/* 分类标签栏 */
.cat-tab-wrap {
	margin: 12px 0 16px 0;
}

.cat-tab-scroll {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 4px 0;
	/* 隐藏滚动条，保留滑动功能 */
	scrollbar-width: none;
}

.cat-tab-scroll::-webkit-scrollbar {
	display: none;
}

.cat-tab-item {
	flex-shrink: 0;
	padding: 7px 16px;
	background: #f4f5f7;
	border-radius: 20px;
	color: #444;
	font-size: 14px;
	text-decoration: none;
}

.cat-tab-item.active {
	background: #2671eb;
	color: #fff;
}


.log-extra {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #eeeeee;
	font-size: 12px;
	color: #999;
	line-height: 1.6;
}

.log-extra-row {
	margin-bottom: 6px;
}

.log-label {
	color: #777;
}

.log-preview-img {
	max-width: 100%;
	max-height: 180px;
	border-radius: 4px;
	vertical-align: middle;
	border: 1px solid #eee;
	display: block;
	margin-top: 4px;
}

/*======== 登录注册卡片美化【追加到末尾】========*/
.login-card,
.reg-card {
    background:#ffffff;
    border-radius:16px;
    padding:28px 22px;
    box-shadow:0 2px 12px rgba(0,0,0,0.05);
}

.reg-title {
    font-size:22px;
    margin-top:0;
    margin-bottom:24px;
}
.login-title {
    font-size:22px;
    margin-top:0;
    margin-bottom:24px;
}

.reg-wrap .am-form-group,
.login-wrap .am-form-group {
    margin-bottom:16px;
}

.reg-wrap input,
.login-wrap input {
    height:46px;
    line-height:46px;
    font-size:15px;
    border-radius:10px;
    border:1px solid #e2e8f0;
    transition: border-color 0.2s;
}
.reg-wrap input:focus,
.login-wrap input:focus {
    border-color:#2671eb;
}

.am-checkbox-wrap {
    margin:14px 0 22px;
}

.reg-submit,
.login-submit {
    height:46px;
    background-color:#2671eb;
    border:none;
    border-radius:10px;
    font-size:16px;
}

.reg-wrap .am-text-center,
.login-wrap .am-text-center {
    margin-top:18px;
    font-size:14px;
}
.reg-wrap .am-text-center a,
.login-wrap .am-text-center a {
    color:#2671eb;
}
.agree{height: auto !important;line-height: 0!important;}

.reg-wrap .am-form-group label,
.login-wrap .am-form-group label{
    display:block;
    width:100%;
    margin:0;
    padding:0;
}
.reg-wrap .am-form-group input[type="text"],
.login-wrap .am-form-group input[type="text"]{
    width:100%;
    box-sizing:border-box;
}
.am-checkbox-wrap {
    margin: 14px 0 22px;
}
.am-checkbox-wrap label.am-checkbox {
    padding-left: 24px;
}
.am-checkbox-wrap a {
    color: #2671eb;
}