/* ==========================================================================
   用户中心 · 页面布局统一（撑满自适应）
   用于 clientarea / service / details / security / message / apimanage / systemlog
   ========================================================================== */

/* ---------- 全局：内容区撑满 ---------- */
body.v2-ca .main-content {
	min-height: calc(100vh - var(--v2-ca-header-h));
}

body.v2-ca .main-content .container-fluid {
	max-width: none;
	width: 100%;
	margin: 0;
	padding-left: 0;
	padding-right: 0;
}

body.v2-ca .page-content {
	display: block;
	width: 100%;
	min-height: calc(100vh - var(--v2-ca-header-h));
	padding: calc(var(--v2-ca-header-h) + 16px) 16px 28px 16px;
}

/* 页头：与布局图一致，只保留标题 */
body.v2-ca .v2-ca-pagehead {
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
	margin: 0 0 14px;
	min-height: 0;
}

body.v2-ca .v2-ca-pagehead .v2-ca-back,
body.v2-ca .v2-ca-pagehead .v2-ca-crumb {
	display: none;
}

body.v2-ca .v2-ca-pagehead .v2-ca-title {
	font-size: 18px;
	font-weight: 700;
	color: #1b2333;
}

/* ---------- 通用卡片 ---------- */
.uc-card {
	background: #fff;
	border: 1px solid #e8edf5;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(23, 43, 77, .04);
	margin-bottom: 16px;
}

.uc-card:last-child {
	margin-bottom: 0;
}

.uc-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 20px;
	border-bottom: 1px solid #f0f3f8;
}

.uc-card-title {
	position: relative;
	margin: 0;
	padding-left: 12px;
	font-size: 13.5px;
	font-weight: 700;
	color: #26304a;
	line-height: 1.4;
}

.uc-card-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	bottom: 2px;
	width: 3px;
	border-radius: 2px;
	background: #2f6bff;
}

.uc-card-body {
	padding: 18px 20px;
}

.uc-more {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 12px;
	color: #98a1b3;
	text-decoration: none;
	white-space: nowrap;
}

.uc-more:hover {
	color: #2f6bff;
	text-decoration: none;
}

.uc-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 34px 10px;
	color: #98a1b3;
	font-size: 12px;
	text-align: center;
}

.uc-empty i {
	font-size: 30px;
	color: #c7d3e6;
}

.uc-empty .uc-empty-text {
	color: #98a1b3;
}

.uc-empty .v2-btn {
	margin-top: 6px;
}

/* ---------- 用户中心首页 ---------- */
.uc-ov {
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(310px, 24vw, 400px);
	gap: 16px;
	align-items: start;
}

.uc-ov-main,
.uc-ov-side {
	min-width: 0;
}

.uc-quick-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.uc-quick-item {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid #e8edf5;
	border-radius: 6px;
	background: #fff;
	color: #3b4357;
	font-size: 12.5px;
	text-decoration: none;
	transition: all .18s ease;
}

.uc-quick-item i {
	font-size: 15px;
	color: #3b7cff;
	flex: none;
}

.uc-quick-item:hover {
	border-color: #bcd2ff;
	background: #f7faff;
	color: #2f6bff;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(47, 107, 255, .10);
}

.uc-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

.uc-stat {
	position: relative;
	min-height: 118px;
	padding: 16px 18px 14px;
	background: #fff;
	border: 1px solid #e8edf5;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(23, 43, 77, .04);
	overflow: hidden;
}

.uc-stat-label {
	display: block;
	font-size: 12px;
	color: #7a8397;
}

.uc-stat-num {
	margin: 10px 0 8px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
	color: #1b2333;
	font-variant-numeric: tabular-nums;
}

.uc-stat-num em {
	margin-left: 3px;
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	color: #98a1b3;
}

.uc-stat-num.is-danger {
	color: #f25643;
}

.uc-stat-links {
	display: flex;
	gap: 16px;
	font-size: 12px;
}

.uc-stat-links a {
	color: #7a8397;
	text-decoration: none;
	white-space: nowrap;
}

.uc-stat-links a:hover {
	color: #2f6bff;
}

.uc-stat-icon {
	position: absolute;
	top: 14px;
	right: 14px;
	font-size: 15px;
	color: #c3ccdd;
}

/* 右侧：个人信息 */
.uc-user-box {
	display: flex;
	align-items: center;
	gap: 12px;
}

.uc-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	overflow: hidden;
	flex: none;
	background: #eef4ff;
}

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

.uc-avatar.is-text {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 17px;
	font-weight: 700;
	color: #2f6bff;
	background: #eef4ff;
}

.uc-user-name {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14.5px;
	font-weight: 700;
	color: #1b2333;
	line-height: 1.4;
}

.uc-verified {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 11px;
	font-weight: 400;
	color: #22a85a;
	background: #eafaf0;
	border-radius: 10px;
	padding: 1px 7px;
	white-space: nowrap;
}

.uc-flags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 7px;
}

.uc-flag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 1px 8px;
	border-radius: 10px;
	background: #eef4ff;
	color: #2f6bff;
	font-size: 11px;
	line-height: 18px;
	text-decoration: none;
}

.uc-flag.is-off {
	background: #f3f5f9;
	color: #98a1b3;
}

.uc-user-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid #f0f3f8;
	text-align: center;
}

.uc-user-stat {
	display: block;
	padding: 2px 4px;
	color: #3b4357;
	text-decoration: none;
}

.uc-user-stat b {
	display: block;
	font-size: 16px;
	line-height: 1.4;
	color: #26304a;
}

.uc-user-stat span {
	display: block;
	margin-top: 2px;
	font-size: 11.5px;
	color: #98a1b3;
}

.uc-user-stat:hover {
	text-decoration: none;
}

.uc-user-stat:hover b {
	color: #2f6bff;
}

/* 右侧：费用信息 */
.uc-balance {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 2px 0 16px;
}

.uc-balance-label {
	display: block;
	font-size: 12px;
	color: #7a8397;
	margin-bottom: 4px;
}

.uc-balance-num {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.1;
	color: #2f6bff;
	font-variant-numeric: tabular-nums;
}

.uc-balance-num em {
	font-size: 12px;
	font-style: normal;
	font-weight: 400;
	color: #7a8397;
	margin-left: 2px;
}

.uc-money-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	background: #f5f7fb;
	border-radius: 6px;
	overflow: hidden;
}

.uc-money-cell {
	padding: 12px 16px;
	font-size: 12px;
	color: #7a8397;
}

.uc-money-cell + .uc-money-cell {
	border-left: 1px solid #e8edf5;
}

.uc-money-cell b {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 600;
	color: #26304a;
}

/* 右侧：公告 / 帮助 */
.uc-notice-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.uc-notice-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px dashed #f0f3f8;
	font-size: 12px;
}

.uc-notice-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.uc-notice-tag {
	flex: none;
	padding: 1px 7px;
	border-radius: 3px;
	font-size: 10.5px;
	line-height: 17px;
	background: #eef4ff;
	color: #2f6bff;
}

.uc-notice-tag.is-top {
	background: #ffece8;
	color: #f25643;
}

.uc-notice-title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #3b4357;
	text-decoration: none;
}

.uc-notice-title:hover {
	color: #2f6bff;
	text-decoration: none;
}

.uc-notice-date {
	flex: none;
	color: #98a1b3;
	font-size: 11px;
}

.uc-doc-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 6px 0;
	font-size: 12px;
}

.uc-doc-title {
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	color: #3b4357;
	text-decoration: none;
}

.uc-doc-title i {
	color: #2f6bff;
	margin-right: 6px;
}

.uc-doc-title:hover {
	color: #2f6bff;
	text-decoration: none;
}

.uc-doc-tag {
	flex: none;
	padding: 1px 7px;
	border-radius: 3px;
	background: #eafaf0;
	color: #22a85a;
	font-size: 10.5px;
	line-height: 17px;
}

/* 资源列表表格 */
.uc-table-wrap {
	overflow-x: auto;
}

.uc-table-wrap .table {
	margin-bottom: 0;
}

.uc-table-wrap .table thead th {
	background: #fbfcfe;
	color: #7a8397;
	font-size: 12px;
	font-weight: 500;
	border-top: 1px solid #f0f3f8;
	border-bottom: 1px solid #f0f3f8;
	padding: 10px 12px;
	white-space: nowrap;
}

.uc-table-wrap .table tbody td {
	padding: 12px;
	font-size: 12.5px;
	color: #3b4357;
	border-bottom: 1px solid #f4f6fa;
}

.uc-table-wrap .table tbody tr:last-child td {
	border-bottom: 0;
}

.uc-table-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 20px;
	border-top: 1px solid #f0f3f8;
	font-size: 12px;
	color: #98a1b3;
}

/* ---------- 服务器列表 ---------- */
.uc-svc-stats {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	padding: 4px 0 16px;
}

.uc-svc-stat {
	padding: 2px 20px;
	border-left: 1px solid #f0f3f8;
}

.uc-svc-stat:first-child {
	border-left: 0;
	padding-left: 0;
}

.uc-svc-stat span {
	display: block;
	font-size: 12px;
	color: #7a8397;
}

.uc-svc-stat b {
	display: block;
	margin-top: 8px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: #1b2333;
	font-variant-numeric: tabular-nums;
}

.uc-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 14px;
	border-top: 1px solid #f0f3f8;
}

.uc-toolbar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.uc-toolbar-search {
	position: relative;
	width: 240px;
	max-width: 100%;
}

.uc-toolbar-search .form-control {
	height: 34px;
	padding: 0 34px 0 12px;
	background: #f7f9fc;
	border: 1px solid #eef1f6;
	border-radius: 4px;
	font-size: 12px;
	color: #3b4357;
	box-shadow: none;
}

.uc-toolbar-search .form-control:focus {
	border-color: #bcd2ff;
	background: #fff;
}

.uc-toolbar-search .search-icon {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	color: #a7b0c2;
	font-size: 12px;
	cursor: pointer;
}

.uc-filterbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	background: #fff;
	border: 1px solid #e8edf5;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(23, 43, 77, .04);
	padding: 10px 14px;
	margin-bottom: 14px;
}

.uc-filters {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.uc-filter {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 28px;
	padding: 0 12px;
	border: 1px solid #e4e9f2;
	border-radius: 14px;
	background: #fff;
	color: #5b6478;
	font-size: 12px;
	line-height: 26px;
	text-decoration: none;
	white-space: nowrap;
}

.uc-filter:hover {
	color: #2f6bff;
	border-color: #cfe0ff;
	text-decoration: none;
}

.uc-filter.is-active {
	color: #2f6bff;
	border-color: #cfe0ff;
	background: #eef4ff;
}

.uc-filterbar-right {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: #98a1b3;
}

.uc-svc-table .uc-product-name {
	font-size: 12.5px;
	color: #2f6bff;
	text-decoration: none;
}

.uc-svc-table .uc-product-name:hover {
	text-decoration: underline;
}

.uc-svc-table .uc-product-sub {
	display: block;
	margin-top: 2px;
	font-size: 11.5px;
	color: #98a1b3;
}

/* ---------- 个人信息 ---------- */
.uc-profile {
	display: grid;
	grid-template-columns: clamp(280px, 24vw, 360px) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.uc-info-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.uc-info-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 7px 0;
	font-size: 12.5px;
	color: #3b4357;
}

.uc-info-row i {
	width: 16px;
	flex: none;
	margin-top: 2px;
	color: #a7b0c2;
	font-size: 13px;
	text-align: center;
}

.uc-info-row .v {
	min-width: 0;
	word-break: break-all;
}

.uc-info-row .v.is-muted {
	color: #98a1b3;
}

.uc-info-actions {
	margin-top: 16px;
}

.uc-info-actions .v2-btn {
	width: 100%;
	justify-content: center;
}

.uc-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 22px;
}

.uc-form-grid .uc-form-item.is-full {
	grid-column: 1 / -1;
}

.uc-form .form-group {
	margin-bottom: 0;
}

.uc-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	color: #5b6478;
}

.uc-form .form-control {
	height: 34px;
	padding: 0 12px;
	background: #f4f6fa;
	border: 1px solid #eef1f6;
	border-radius: 4px;
	font-size: 12.5px;
	color: #3b4357;
	box-shadow: none;
}

.uc-form .form-control:focus {
	background: #fff;
	border-color: #bcd2ff;
	box-shadow: none;
}

.uc-form .form-control[readonly] {
	background: #f4f6fa;
	color: #7a8397;
}

.uc-form textarea.form-control {
	height: auto;
	min-height: 84px;
	padding: 8px 12px;
	line-height: 1.6;
	resize: vertical;
}

.uc-form .custom-control {
	padding-left: 0;
	min-height: 0;
}

.uc-form .custom-control-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding-left: 22px;
	font-size: 12.5px;
	color: #5b6478;
	cursor: pointer;
}

.uc-form .custom-control-label::before,
.uc-form .custom-control-label::after {
	left: 0;
	top: 2px;
	width: 15px;
	height: 15px;
}

.uc-submitbar {
	display: flex;
	justify-content: flex-end;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #f0f3f8;
}

/* ---------- 安全中心 ---------- */
.uc-sec-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: 16px;
	align-items: start;
}

.uc-sec-col .uc-card:last-child {
	margin-bottom: 0;
}

.uc-account-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f0f3f8;
}

.uc-account-name {
	font-size: 14.5px;
	font-weight: 700;
	color: #1b2333;
}

.uc-account-sub {
	margin-top: 4px;
	font-size: 12px;
	color: #98a1b3;
}

.uc-account-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px 24px;
	padding-top: 14px;
}

.uc-account-item {
	font-size: 12.5px;
	color: #3b4357;
}

.uc-account-item .k {
	color: #98a1b3;
	margin-right: 8px;
}

.uc-sec-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 0;
	border-bottom: 1px dashed #eef1f6;
}

.uc-sec-item:first-child {
	padding-top: 4px;
}

.uc-sec-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.uc-sec-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 9px;
	background: #eef4ff;
	color: #2f6bff;
	font-size: 16px;
	flex: none;
}

.uc-sec-main {
	flex: 1;
	min-width: 0;
}

.uc-sec-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #26304a;
}

.uc-sec-ok {
	padding: 1px 8px;
	border-radius: 10px;
	background: #eafaf0;
	color: #22a85a;
	font-size: 10.5px;
	font-weight: 400;
	white-space: nowrap;
}

.uc-sec-desc {
	margin-top: 4px;
	font-size: 12px;
	color: #98a1b3;
	line-height: 1.6;
}

.uc-sec-act {
	flex: none;
}

.uc-ring {
	--uc-ring-p: 100%;
	width: 132px;
	height: 132px;
	margin: 18px auto 14px;
	border-radius: 50%;
	background: conic-gradient(#22c55e 0 var(--uc-ring-p), #eef2f7 var(--uc-ring-p) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
}

.uc-ring-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 104px;
	border-radius: 50%;
	background: #fff;
}

.uc-ring-num {
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	color: #22c55e;
}

.uc-ring-label {
	margin-top: 5px;
	font-size: 12px;
	color: #5b6478;
}

.uc-legend {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 11.5px;
	color: #98a1b3;
}

.uc-legend i {
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 5px;
	border-radius: 50%;
	vertical-align: 1px;
}

.uc-remind-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px dashed #eef1f6;
}

.uc-remind-item:first-child {
	padding-top: 2px;
}

.uc-remind-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.uc-remind-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #eef4ff;
	color: #2f6bff;
	font-size: 14px;
	flex: none;
}

.uc-remind-main {
	flex: 1;
	min-width: 0;
}

.uc-remind-title {
	font-size: 12.5px;
	font-weight: 600;
	color: #26304a;
}

.uc-remind-desc {
	margin-top: 3px;
	font-size: 11.5px;
	color: #98a1b3;
}

/* ---------- 消息中心 ---------- */
.uc-tabs {
	display: flex;
	align-items: center;
	gap: 26px;
	padding: 0 20px;
	border-bottom: 1px solid #f0f3f8;
	overflow-x: auto;
}

.uc-tab {
	position: relative;
	padding: 14px 0;
	font-size: 13px;
	color: #5b6478;
	text-decoration: none;
	white-space: nowrap;
}

.uc-tab i {
	margin-right: 5px;
	font-size: 13px;
	vertical-align: -1px;
}

.uc-tab:hover {
	color: #2f6bff;
	text-decoration: none;
}

.uc-tab.is-active {
	color: #2f6bff;
	font-weight: 600;
}

.uc-tab.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	border-radius: 2px;
	background: #2f6bff;
}

.uc-tab-count {
	margin-left: 2px;
	color: #f25643;
	font-size: 11px;
}

.uc-mini-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	padding: 14px 20px;
}

.uc-mini-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	height: 28px;
	padding: 0 12px;
	border: 1px solid transparent;
	border-radius: 3px;
	font-size: 12px;
	line-height: 26px;
	cursor: pointer;
	white-space: nowrap;
	background: #fff;
}

.uc-mini-btn.is-primary {
	background: #2f6bff;
	border-color: #2f6bff;
	color: #fff;
}

.uc-mini-btn.is-danger {
	background: #ef5350;
	border-color: #ef5350;
	color: #fff;
}

.uc-mini-btn.is-ghost {
	background: #fff;
	border-color: #2f6bff;
	color: #2f6bff;
}

.uc-mini-btn.is-ghost-danger {
	background: #fff;
	border-color: #ef5350;
	color: #ef5350;
}

.uc-mini-btn[disabled] {
	opacity: .45;
	cursor: not-allowed;
}

.uc-msg-table .uc-msg-title {
	color: #3b4357;
	cursor: pointer;
}

.uc-msg-table .uc-msg-title:hover {
	color: #2f6bff;
}

.uc-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 6px;
	border-radius: 50%;
	background: #f25643;
	vertical-align: 1px;
}

.uc-chip {
	display: inline-block;
	padding: 1px 8px;
	border-radius: 3px;
	background: #f3f5f9;
	color: #5b6478;
	font-size: 11.5px;
	line-height: 18px;
}

/* ---------- API 管理 ---------- */
.uc-api-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 14px 20px;
	background: #fff;
	border: 1px solid #e8edf5;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(23, 43, 77, .04);
	margin-bottom: 16px;
}

.uc-api-key {
	font-size: 12.5px;
	color: #5b6478;
}

.uc-api-key b {
	color: #26304a;
	font-weight: 600;
	letter-spacing: .3px;
}

.uc-api-key .uc-api-sep {
	margin: 0 14px;
	color: #d7dee9;
}

.uc-api-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.uc-api-metrics {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}

.uc-metric {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid #e8edf5;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(23, 43, 77, .04);
}

.uc-metric-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	background: #eef4ff;
	color: #2f6bff;
	font-size: 15px;
	flex: none;
}

.uc-metric-icon.is-green {
	background: #eafaf0;
	color: #22a85a;
}

.uc-metric-icon.is-orange {
	background: #fff4e8;
	color: #f59a23;
}

.uc-metric-body {
	min-width: 0;
}

.uc-metric-label {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 11.5px;
	color: #98a1b3;
}

.uc-metric-num {
	margin-top: 3px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: #1b2333;
	font-variant-numeric: tabular-nums;
}

.uc-metric-num em {
	margin-left: 5px;
	font-size: 11.5px;
	font-style: normal;
	font-weight: 400;
	color: #98a1b3;
}

.uc-chart {
	width: 100%;
	height: 360px;
}

.uc-api-chart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 20px 0;
}

.uc-api-chart-head .uc-card-title {
	padding-left: 0;
}

.uc-api-chart-head .uc-card-title::before {
	display: none;
}

/* ---------- 日志 ---------- */
.uc-log-search {
	padding: 14px 20px 10px;
}

.uc-log-search .uc-toolbar-search {
	width: 280px;
}

.uc-log-table .uc-log-desc {
	display: -webkit-box;
	overflow: hidden;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	word-break: break-all;
	color: #3b4357;
}

/* ---------- 补充 ---------- */
.uc-link {
	color: #2f6bff;
	text-decoration: none;
}

.uc-link:hover {
	text-decoration: underline;
}

.uc-card>.table-footer {
	margin: 0;
	padding: 12px 20px;
	border-top: 1px solid #f0f3f8;
}

.uc-mini-btn i {
	font-size: 13px;
}

.uc-msg-card .uc-table-wrap .table thead th {
	border-top: 0;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
	.uc-ov {
		grid-template-columns: minmax(0, 1fr) 330px;
	}

	.uc-stats {
		gap: 12px;
	}

	.uc-stat {
		padding: 14px;
	}

	.uc-quick-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	.uc-ov,
	.uc-profile,
	.uc-sec-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.uc-svc-stats {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		row-gap: 14px;
	}

	.uc-svc-stat {
		border-left: 0;
		padding: 0 10px;
	}

	.uc-svc-stat:first-child {
		padding-left: 10px;
	}

	.uc-api-metrics {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767.98px) {
	body.v2-ca .page-content {
		padding-left: 10px;
		padding-right: 10px;
	}

	.uc-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.uc-quick-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.uc-form-grid,
	.uc-account-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.uc-svc-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.uc-sec-item {
		flex-wrap: wrap;
	}

	.uc-card-head,
	.uc-card-body {
		padding-left: 14px;
		padding-right: 14px;
	}

	.uc-api-head {
		padding: 12px 14px;
	}
}

/* ---------------- 侧边栏分组：默认只显示当前页所在分支 ---------------- */
.v2-ca-side #side-menu ul.sub-menu {
	display: none;
}

.v2-ca-side #side-menu ul.sub-menu.mm-show {
	display: block;
}

.v2-ca-side #side-menu ul.sub-menu.mm-collapsing {
	display: block;
}

/* 当前选中项：二级菜单文字/图标同步为主题蓝，避免被通用二级文字色覆盖 */
body.v2-ca #sidebar-menu ul li ul.sub-menu li a.active {
	background: #E8EFFF !important;
	color: #1B5CE6 !important;
	font-weight: 500;
}

body.v2-ca #sidebar-menu ul li ul.sub-menu li a.active i {
	color: #1B5CE6 !important;
}

/* ==========================================================================
   移动端（≤992px）：用户中心侧栏改为左侧抽屉
   只作用于 body.v2-ca，不影响后台和购物车等其它页面的侧栏
   ========================================================================== */
@media (max-width: 992px) {
	/* 始终参与布局，靠位移隐藏：这样 simplebar 首次计算高度才是正确的 */
	body.v2-ca .vertical-menu,
	body.v2-ca[data-sidebar="dark"] .vertical-menu {
		top: var(--v2-ca-header-h) !important;
		bottom: 0 !important;
		left: 0;
		width: min(86vw, 300px) !important;
		max-width: 300px;
		display: block !important;
		visibility: hidden;
		transform: translateX(-100%);
		transition: transform .24s cubic-bezier(.4, 0, .2, 1), visibility .24s;
		box-shadow: none !important;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	body.v2-ca.sidebar-enable .vertical-menu {
		visibility: visible;
		transform: translateX(0);
		box-shadow: 8px 0 28px rgba(15, 23, 42, .16) !important;
	}

	/* 抽屉打开时锁住背景页面滚动 */
	body.v2-ca.sidebar-enable {
		overflow: hidden;
	}

	/* 遮罩改为淡入淡出，避免生硬弹出 */
	body.v2-ca .v2-ca-mask {
		display: block;
		opacity: 0;
		visibility: hidden;
		background: rgba(15, 23, 42, .45);
		transition: opacity .24s ease, visibility .24s;
	}

	body.v2-ca.sidebar-enable .v2-ca-mask {
		opacity: 1;
		visibility: visible;
	}

	/* 平板（767–992px）也要能打开抽屉：custom.css 曾在此区间隐藏汉堡按钮 */
	body.v2-ca #vertical-menu-btn {
		display: inline-flex !important;
	}

	/* 手指点击区域：一级 ≥44px，二级 ≥40px */
	body.v2-ca #sidebar-menu > ul > li > a {
		min-height: 44px;
		padding-top: 11px;
		padding-bottom: 11px;
	}

	body.v2-ca #sidebar-menu ul li ul.sub-menu li a {
		min-height: 40px;
	}

	/* 底部安全区，避免 iPhone 手势条压住最后一个菜单项 */
	body.v2-ca .v2-ca-side-inner {
		padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	}
}

@media (max-width: 992px) and (prefers-reduced-motion: reduce) {
	body.v2-ca .vertical-menu,
	body.v2-ca .v2-ca-mask {
		transition: none;
	}
}

/* ==========================================================================
   已购买产品列表：手机/平板（≤992px）改为卡片展示
   ========================================================================== */
@media (max-width: 991.98px) {
	.uc-svc-table colgroup,
	.uc-svc-table thead {
		display: none;
	}

	.uc-svc-table,
	.uc-svc-table tbody {
		display: block;
		width: 100%;
	}

	.uc-svc-table tbody > tr {
		display: block;
		position: relative;
		margin: 0 0 12px;
		padding: 14px 14px 12px;
		border: 1px solid #e6ecf5;
		border-radius: 12px;
		background: #fff;
		box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	}

	.uc-svc-table tbody > tr:last-child {
		margin-bottom: 0;
	}

	.uc-svc-table tbody > tr > td {
		display: flex;
		align-items: flex-start;
		gap: 10px;
		width: 100%;
		max-width: none;
		padding: 4px 0 !important;
		border: 0 !important;
		white-space: normal;
		text-align: left;
		font-size: 13px;
	}

	.uc-svc-table tbody > tr > td::before {
		content: attr(data-label);
		flex: 0 0 48px;
		font-size: 12px;
		line-height: 20px;
		color: #94a3b8;
	}

	/* 勾选框固定在卡片右上角 */
	.uc-svc-table tbody > tr > td.v2-checkcol {
		position: absolute;
		top: 12px;
		right: 10px;
		width: auto;
		padding: 0 !important;
	}

	.uc-svc-table tbody > tr > td.v2-checkcol::before {
		display: none;
	}

	/* 产品名作为卡片标题 */
	.uc-svc-table tbody > tr > td:nth-child(2) {
		display: block;
		padding: 0 30px 2px 0 !important;
	}

	.uc-svc-table tbody > tr > td:nth-child(2)::before {
		display: none;
	}

	.uc-svc-table tbody > tr > td:nth-child(2) .uc-product-name {
		display: inline-block;
		font-size: 15px;
		font-weight: 600;
		color: #0f172a;
	}

	.uc-svc-table tbody > tr > td:nth-child(2) .uc-product-sub {
		margin-top: 2px;
		font-size: 12px;
	}

	/* 状态放在标题下方 */
	.uc-svc-table tbody > tr > td.v2-svc-state {
		padding: 6px 0 2px !important;
	}

	.uc-svc-table tbody > tr > td.v2-svc-state::before {
		display: none;
	}

	/* 备注：取消桌面端 160px 宽度限制 */
	.uc-svc-table tbody > tr > td .v2-svc-notes {
		max-width: none;
		width: 100%;
	}

	/* 操作按钮铺满卡片底部 */
	.uc-svc-table tbody > tr > td:last-child {
		display: block;
		margin-top: 10px;
		padding: 10px 0 0 !important;
		border-top: 1px dashed #eef2f8 !important;
	}

	.uc-svc-table tbody > tr > td:last-child::before {
		display: none;
	}

	.uc-svc-table tbody > tr > td:last-child .v2-rowactions {
		justify-content: stretch;
	}

	.uc-svc-table tbody > tr > td:last-child .v2-act {
		flex: 1 1 auto;
		justify-content: center;
		height: 36px;
		border: 1px solid #dbe4f3;
		border-radius: 8px;
	}

	/* 空状态：不套卡片外框 */
	.uc-svc-table tbody > tr > td[colspan] {
		display: block;
		padding: 0 !important;
		border: 0 !important;
	}

	.uc-svc-table tbody > tr > td[colspan]::before {
		display: none;
	}

	.uc-svc-table tbody > tr:has(> td[colspan]) {
		margin: 0;
		padding: 0;
		border: 0;
		box-shadow: none;
	}
}
