/* AK Campus 答题宠物 /pet/ + 首页板块 */

.pt {
	--pt-ink: #1f2937;
	--pt-line: #e5e7eb;
	--pt-main: #6d28d9;
	--pt-soft: #f5f3ff;
	--pt-gold: #d97706;
}

/* ---------- 顶部两栏 ---------- */
.pt-top {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 14px;
	align-items: stretch;
}

/* ---------- 宠物卡 ---------- */
.pt-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--pt-line);
	border-radius: 18px;
	padding: 14px;
	overflow: hidden;
}

.pt-stage {
	position: relative;
	height: 236px;
	border-radius: 14px;
	background:
		radial-gradient(circle at 50% 78%, #ede9fe 0%, #f8fafc 62%, #f1f5f9 100%);
	border: 1px solid #ede9fe;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	transition: background .4s;
}

/* 背景场景 */
.pt-stage.bg-sakura {
	background: linear-gradient(180deg, #fff1f7 0%, #ffe4ef 60%, #fdf2f8 100%);
}
.pt-stage.bg-sakura::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, #f9a8d4 1.6px, transparent 1.8px);
	background-size: 26px 26px;
	opacity: .5;
	pointer-events: none;
}
.pt-stage.bg-star {
	background: linear-gradient(180deg, #0f172a 0%, #1e1b4b 60%, #312e81 100%);
	border-color: #312e81;
}
.pt-stage.bg-star::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: radial-gradient(circle, #e0e7ff 1.2px, transparent 1.6px);
	background-size: 34px 34px;
	opacity: .75;
	pointer-events: none;
}
.pt-stage.bg-matrix {
	background: linear-gradient(180deg, #04170c 0%, #052e16 70%, #064e3b 100%);
	border-color: #065f46;
}
.pt-stage.bg-matrix::after {
	content: "01001 11010 001 1011 010 1101 001";
	position: absolute;
	inset: 0;
	color: #22c55e;
	font: 700 11px/1.9 Consolas, monospace;
	letter-spacing: 3px;
	opacity: .28;
	word-break: break-all;
	padding: 8px;
	overflow: hidden;
	pointer-events: none;
}

.pt-glow {
	position: absolute;
	width: 190px;
	height: 190px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(139, 92, 246, .3) 0%, rgba(139, 92, 246, 0) 68%);
	filter: blur(6px);
	animation: pt-glow 3.4s ease-in-out infinite;
}
@keyframes pt-glow {
	0%, 100% { transform: scale(1); opacity: .85; }
	50% { transform: scale(1.14); opacity: 1; }
}

.pt-beast {
	position: relative;
	z-index: 2;
	font-size: 108px;
	line-height: 1;
	animation: pt-float 3s ease-in-out infinite;
	filter: drop-shadow(0 10px 14px rgba(76, 29, 149, .22));
	transform-origin: 50% 90%;
	user-select: none;
}
@keyframes pt-float {
	0%, 100% { transform: translateY(0) rotate(-1deg); }
	50% { transform: translateY(-9px) rotate(1.5deg); }
}

/* 进化形态大一点、光更亮 */
.pt-beast.is-s2 {
	font-size: 116px;
}
.pt-beast.is-s3 {
	font-size: 124px;
	filter: drop-shadow(0 0 16px rgba(139, 92, 246, .45)) drop-shadow(0 10px 16px rgba(76, 29, 149, .25));
}
.pt-beast.is-s4 {
	font-size: 132px;
	filter: drop-shadow(0 0 20px rgba(250, 204, 21, .5)) drop-shadow(0 10px 16px rgba(76, 29, 149, .25));
}
.pt-beast.is-s5 {
	font-size: 138px;
	filter: drop-shadow(0 0 26px rgba(250, 204, 21, .7)) drop-shadow(0 0 8px rgba(255, 255, 255, .8)) drop-shadow(0 12px 18px rgba(76, 29, 149, .26));
}

/* 穿戴槽：明确做成小徽章，避免和宠物本体混在一起 */
.pt-wear {
	position: absolute;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 13px;
	background: rgba(255, 255, 255, .94);
	border: 1px solid rgba(148, 163, 184, .38);
	box-shadow: 0 5px 14px rgba(15, 23, 42, .18);
	font-size: 25px;
	line-height: 1;
	animation: pt-pop .45s cubic-bezier(.2, 1.6, .4, 1) both;
}
.pt-wear.is-look.s1 {
	top: 12px;
	right: 12px;
}
.pt-wear.is-look.s2 {
	top: 12px;
	left: 12px;
}
.pt-wear.is-look.s3 {
	bottom: 12px;
	right: 12px;
}
.pt-wear.is-gear {
	bottom: 12px;
	left: 12px;
	font-size: 23px;
}
.pt-wear[hidden] {
	display: none !important;
}
@keyframes pt-pop {
	from { transform: scale(.3) rotate(-16deg); opacity: 0; }
	to { transform: scale(1) rotate(0); opacity: 1; }
}

/* 进化闪光 */
.pt-card.is-evo .pt-stage::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 5;
	background: radial-gradient(circle at 50% 60%, #fff 0%, #fef3c7 32%, rgba(254, 243, 199, 0) 72%);
	animation: pt-evo-flash 1.9s ease-out forwards;
}
.pt-card.is-evo .pt-beast {
	animation: pt-evo-beast 1.9s cubic-bezier(.3, 1.4, .4, 1) forwards;
}
@keyframes pt-evo-flash {
	0% { opacity: 0; }
	18% { opacity: 1; }
	60% { opacity: .55; }
	100% { opacity: 0; }
}
@keyframes pt-evo-beast {
	0% { transform: scale(1); }
	35% { transform: scale(1.35) rotate(-8deg); }
	60% { transform: scale(.9) rotate(6deg); }
	100% { transform: scale(1) rotate(0); }
}

/* ---------- 宠物信息 ---------- */
.pt-info {
	padding: 14px 6px 2px;
}
.pt-line1 {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}
.pt-line1 h2 {
	margin: 0;
	font-size: 22px;
	line-height: 1.25;
	color: #0f172a;
}
.pt-lv {
	background: var(--pt-main);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	letter-spacing: .3px;
}
.pt-title {
	margin: 3px 0 12px;
	font-size: 12.5px;
	color: #64748b;
}
.pt-title em {
	font-style: normal;
	margin: 0 5px;
	color: #cbd5e1;
}
.pt-quip {
	margin: -5px 0 12px;
	padding: 7px 10px;
	border-radius: 9px;
	background: var(--pt-soft);
	border: 1px dashed #ded7f6;
	font-size: 12.5px;
	line-height: 1.65;
	color: #6b6785;
}

.pt-exp-bar {
	height: 12px;
	border-radius: 999px;
	background: #ede9fe;
	overflow: hidden;
}
.pt-exp-bar i {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #8b5cf6 0%, #6d28d9 100%);
	transition: width .9s cubic-bezier(.3, 1, .4, 1);
}
.pt-exp-tx {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: #7c3aed;
	font-variant-numeric: tabular-nums;
}

.pt-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 12px 0 8px;
}
.pt-chip {
	background: #f8fafc;
	border: 1px solid var(--pt-line);
	border-radius: 8px;
	padding: 4px 10px;
	font-size: 12.5px;
	color: #475569;
}
.pt-chip b {
	color: #0f172a;
	font-size: 14px;
}
.pt-chip.is-coin {
	background: #fffbeb;
	border-color: #fde68a;
	color: #92400e;
}
.pt-chip.is-coin b {
	color: #b45309;
}
.pt-chip.is-buff {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #047857;
}

.pt-evo-tip {
	margin: 0;
	font-size: 12.5px;
	color: #64748b;
}
.pt-evo-tip b {
	color: var(--pt-main);
}

/* 进化进度：按累计答题数，不是等级 */
.pt-evo-box {
	margin-top: 9px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.pt-evo-prog {
	position: relative;
	height: 17px;
	border-radius: 999px;
	background: #eef2f7;
	overflow: hidden;
}
.pt-evo-prog i {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #a78bfa 0%, #f59e0b 100%);
	transition: width .5s ease;
}
.pt-evo-prog span {
	position: relative;
	z-index: 1;
	display: block;
	text-align: center;
	font-size: 10.5px;
	line-height: 17px;
	font-weight: 700;
	color: #475569;
	letter-spacing: .2px;
}
.pt-secret-tip {
	display: block;
	margin-top: 5px;
	font-style: normal;
	font-size: 11.5px;
	color: #92400e;
	background: #fef3c7;
	border: 1px dashed #fcd34d;
	border-radius: 7px;
	padding: 4px 8px;
}
.is-secret {
	color: #94a3b8 !important;
	letter-spacing: 1px;
}

/* ---------- 换一只 / 老师模式 ---------- */
.pt-switch,
.pt-teach {
	margin-top: 10px;
	padding: 0 11px;
	border: 1px solid var(--pt-line);
	border-radius: 12px;
	background: #fff;
}
.pt-switch[open],
.pt-teach[open] {
	padding-bottom: 12px;
	background: #fdfdff;
}
.pt-switch summary,
.pt-teach summary {
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 10px 0;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	list-style: none;
}
.pt-switch summary::-webkit-details-marker,
.pt-teach summary::-webkit-details-marker {
	display: none;
}
.pt-switch summary::after,
.pt-teach summary::after {
	content: "▾";
	margin-left: auto;
	color: #a78bfa;
	font-size: 11px;
}
.pt-switch[open] summary::after,
.pt-teach[open] summary::after {
	content: "▴";
}
.pt-switch summary em,
.pt-teach summary em {
	font-style: normal;
	font-weight: 400;
	font-size: 11px;
	color: #94a3b8;
}
.pt-switch-tip {
	margin: 0 0 9px;
	font-size: 11.5px;
	line-height: 1.65;
	color: #64748b;
}
.pt-switch-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 6px;
}
.pt-sw-chip {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 7px 2px 6px;
	border: 1px solid var(--pt-line);
	border-radius: 9px;
	background: #fff;
	cursor: pointer;
	transition: .15s;
}
.pt-sw-chip input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.pt-sw-chip b {
	font-size: 19px;
	line-height: 1.15;
}
.pt-sw-chip span {
	font-size: 10.5px;
	color: #475569;
	white-space: nowrap;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}
.pt-sw-chip i {
	font-style: normal;
	font-size: 9px;
	color: #7c3aed;
}
.pt-sw-chip.is-on {
	border-color: #a78bfa;
	background: #f5f3ff;
	box-shadow: 0 0 0 2px rgba(167, 139, 250, .18);
}
.pt-sw-chip.is-cur {
	opacity: .62;
	border-style: dashed;
}
.pt-switch-row {
	display: flex;
	gap: 7px;
	margin-top: 9px;
}
.pt-switch-row input {
	flex: 1 1 auto;
	min-width: 0;
	height: 34px;
	padding: 0 10px;
	border: 1px solid var(--pt-line);
	border-radius: 9px;
	font-size: 13px;
	font-family: inherit;
}
.pt-switch-row .pt-btn {
	flex: 0 0 auto;
	white-space: nowrap;
}
.pt-switch-done {
	margin: 10px 0 0;
	font-size: 11.5px;
	color: #94a3b8;
}
.pt-teach-row {
	display: flex;
	gap: 8px;
	align-items: flex-end;
	flex-wrap: wrap;
}
.pt-teach-row label {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-size: 11px;
	color: #64748b;
}
.pt-teach-row select {
	height: 34px;
	min-width: 118px;
	padding: 0 6px;
	border: 1px solid var(--pt-line);
	border-radius: 9px;
	background: #fff;
	font-size: 12.5px;
	font-family: inherit;
	color: #334155;
}
.pt-teach-row .pt-btn {
	height: 34px;
	padding: 0 14px;
}

/* 结算提示条 */
.pt-gain {
	margin-top: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	background: linear-gradient(90deg, #f5f3ff 0%, #fffbeb 100%);
	border: 1px solid #ddd6fe;
	border-radius: 11px;
	padding: 9px 12px;
	animation: pt-gain-in .5s ease-out both;
}
@keyframes pt-gain-in {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: none; }
}
.pt-gain b {
	font-size: 15px;
	color: var(--pt-main);
	font-variant-numeric: tabular-nums;
}
.pt-gain b + b {
	color: var(--pt-gold);
}
.pt-gain span {
	font-size: 12px;
	color: #64748b;
	margin-left: auto;
}

/* ---------- 怎么养 ---------- */
.pt-howto {
	background: #fff;
	border: 1px solid var(--pt-line);
	border-radius: 18px;
	padding: 16px 18px;
	display: flex;
	flex-direction: column;
}
.pt-howto h3 {
	margin: 0 0 10px;
	font-size: 15px;
	color: #0f172a;
}
.pt-howto ul {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: grid;
	gap: 7px;
}
.pt-howto li {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	padding-bottom: 7px;
	border-bottom: 1px dashed #eef2f7;
}
.pt-howto li b {
	color: #334155;
	font-weight: 600;
}
.pt-howto li span {
	color: #7c3aed;
	font-variant-numeric: tabular-nums;
}
.pt-howto > p {
	margin: 0 0 12px;
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.65;
}
/* 进化路线 */
.pt-road {
	margin: 2px 0 14px;
	padding: 11px 12px 9px;
	border: 1px dashed #ddd6fe;
	border-radius: 12px;
	background: #fcfbff;
}
.pt-road-t {
	display: block;
	font-size: 11.5px;
	color: #7c3aed;
	margin-bottom: 7px;
	letter-spacing: .3px;
}
.pt-road-line {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}
.pt-road-line span {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	opacity: .42;
	filter: grayscale(.6);
	transition: .2s;
}
.pt-road-line span b {
	font-size: 26px;
	line-height: 1.1;
}
.pt-road-line span i {
	font-style: normal;
	font-size: 10px;
	color: #64748b;
	white-space: nowrap;
}
.pt-road-line span.is-done {
	opacity: .72;
	filter: none;
}
.pt-road-line span.is-on {
	opacity: 1;
	filter: none;
	transform: scale(1.14);
}
.pt-road-line span.is-on b {
	filter: drop-shadow(0 0 8px rgba(139, 92, 246, .45));
}
.pt-road-line span.is-on i {
	color: #6d28d9;
	font-weight: 700;
}
.pt-road-line em {
	font-style: normal;
	font-size: 10px;
	color: #a78bfa;
	background: #fff;
	border: 1px solid #ede9fe;
	border-radius: 999px;
	padding: 1px 5px;
	white-space: nowrap;
}

.pt-howto-act {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-top: auto;
}

/* ---------- 通用按钮 ---------- */
.pt-btn {
	display: inline-block;
	text-align: center;
	padding: 8px 14px;
	border: 1px solid var(--pt-line);
	border-radius: 10px;
	background: #fff;
	color: #334155;
	font-size: 13px;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: .16s;
	font-family: inherit;
}
.pt-btn:hover {
	border-color: #a78bfa;
	color: var(--pt-main);
	background: #faf5ff;
}
.pt-btn.is-primary {
	background: var(--pt-main);
	border-color: var(--pt-main);
	color: #fff;
	font-weight: 600;
}
.pt-btn.is-primary:hover {
	background: #5b21b6;
	border-color: #5b21b6;
	color: #fff;
}
.pt-btn.is-ghost {
	background: #f8fafc;
	color: #64748b;
	font-size: 12px;
	padding: 6px 11px;
}
.pt-btn.is-lock {
	background: #f1f5f9;
	color: #94a3b8;
	cursor: not-allowed;
	font-size: 12px;
	padding: 6px 11px;
}
.pt-btn[disabled] {
	opacity: .6;
	cursor: default;
}

.pt-hint {
	margin: 9px 0 0;
	font-size: 12.5px;
	color: #64748b;
}
.pt-hint.is-err {
	color: #b91c1c;
}
.pt-hint.is-ok {
	color: #047857;
}

/* ---------- 领养 ---------- */
.pt-adopt {
	background: #fff;
	border: 1px solid var(--pt-line);
	border-radius: 18px;
	padding: 20px 22px 22px;
}
.pt-adopt h2 {
	margin: 0 0 4px;
	font-size: 19px;
	color: #0f172a;
}
.pt-sub {
	margin: 0 0 16px;
	font-size: 12.5px;
	color: #64748b;
}

.pt-species {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}
.pt-sp {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 16px 10px 12px;
	border: 2px solid var(--pt-line);
	border-radius: 14px;
	background: #fcfcfd;
	cursor: pointer;
	transition: .18s;
	text-align: center;
}
.pt-sp:hover {
	border-color: #c4b5fd;
	background: #faf5ff;
	transform: translateY(-2px);
}
.pt-sp.is-on {
	border-color: var(--pt-main);
	background: var(--pt-soft);
	box-shadow: 0 6px 18px rgba(109, 40, 217, .13);
}
.pt-sp input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.pt-sp-ico {
	font-size: 44px;
	line-height: 1.1;
}
.pt-sp-name {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}
.pt-sp-tag {
	font-size: 11.5px;
	color: #7c3aed;
}
.pt-sp-why {
	font-size: 11.5px;
	color: #64748b;
	line-height: 1.55;
	min-height: 36px;
}
.pt-sp-evo {
	display: flex;
	align-items: center;
	gap: 3px;
	margin-top: 4px;
	padding-top: 7px;
	border-top: 1px dashed #e9d5ff;
	width: 100%;
	justify-content: center;
	font-size: 15px;
}
.pt-sp-evo em {
	font-style: normal;
	color: #cbd5e1;
	font-size: 10px;
}
.pt-sp.is-on .pt-sp-evo b {
	filter: drop-shadow(0 0 6px rgba(139, 92, 246, .4));
}

.pt-adopt-row {
	display: flex;
	gap: 10px;
	align-items: flex-end;
	flex-wrap: wrap;
}
.pt-field {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 12.5px;
	color: #475569;
}
.pt-field input {
	padding: 9px 12px;
	border: 1px solid #d8dee9;
	border-radius: 10px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
}
.pt-field input:focus {
	outline: none;
	border-color: var(--pt-main);
	box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
}
.pt-field select {
	padding: 9px 10px;
	border: 1px solid #d8dee9;
	border-radius: 10px;
	font-size: 13.5px;
	font-family: inherit;
	background: #fff;
	color: #334155;
}
.pt-field.is-narrow {
	flex: 0 1 170px;
}
.pt-adopt-row .pt-btn {
	padding: 10px 22px;
	font-size: 14px;
}

/* ---------- 未登录 ---------- */
.pt-blank {
	text-align: center;
	background: #fff;
	border: 1px solid var(--pt-line);
	border-radius: 18px;
	padding: 44px 20px 40px;
}
.pt-blank-ico {
	font-size: 64px;
	display: block;
	margin-bottom: 8px;
}
.pt-blank h2 {
	margin: 0 0 6px;
	font-size: 19px;
}
.pt-blank p {
	margin: 0 0 16px;
	font-size: 13px;
	color: #64748b;
}

/* ---------- 商店 ---------- */
.pt-shop {
	margin-top: 20px;
	background: #fff;
	border: 1px solid var(--pt-line);
	border-radius: 18px;
	padding: 18px 20px 20px;
}
.pt-shop-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	flex-wrap: wrap;
}
.pt-shop-head h2 {
	margin: 0 0 2px;
	font-size: 18px;
	color: #0f172a;
}
.pt-shop-head .pt-sub {
	margin: 0;
}
.pt-wallet {
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 10px;
	padding: 7px 14px;
	font-size: 13px;
	color: #92400e;
	white-space: nowrap;
}
.pt-wallet b {
	font-size: 17px;
	color: #b45309;
	font-variant-numeric: tabular-nums;
}

.pt-tabs {
	display: flex;
	gap: 8px;
	margin: 14px 0 12px;
	flex-wrap: wrap;
}
.pt-tab {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1px;
	padding: 8px 14px;
	border: 1px solid var(--pt-line);
	border-radius: 11px;
	background: #fff;
	font-size: 13.5px;
	color: #334155;
	cursor: pointer;
	font-family: inherit;
	transition: .16s;
	text-align: left;
}
.pt-tab em {
	font-style: normal;
	font-size: 11px;
	color: #94a3b8;
}
.pt-tab:hover {
	border-color: #c4b5fd;
}
.pt-tab.is-on {
	background: var(--pt-soft);
	border-color: var(--pt-main);
	color: var(--pt-main);
	font-weight: 600;
}
.pt-tab.is-on em {
	color: #a78bfa;
}

.pt-pane {
	display: none;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}
.pt-pane.is-on {
	display: grid;
}

.pt-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--pt-line);
	border-radius: 12px;
	background: #fcfcfd;
	transition: .16s;
}
.pt-item.is-mine {
	background: #faf5ff;
	border-color: #ddd6fe;
}
.pt-item.is-on {
	border-color: var(--pt-main);
	background: var(--pt-soft);
	box-shadow: inset 0 0 0 1px var(--pt-main);
}
.pt-item-ico {
	font-size: 26px;
	line-height: 1;
	flex: 0 0 auto;
}
.pt-item-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.pt-item-body b {
	font-size: 13.5px;
	color: #0f172a;
}
.pt-item-desc {
	font-size: 11.5px;
	color: #64748b;
	line-height: 1.45;
}
.pt-item .pt-btn {
	flex: 0 0 auto;
	padding: 6px 12px;
	font-size: 12.5px;
}

/* ---------- 榜单 ---------- */
.pt-board {
	margin-top: 20px;
	background: #fff;
	border: 1px solid var(--pt-line);
	border-radius: 18px;
	padding: 18px 20px 16px;
}
.pt-board h2 {
	margin: 0 0 12px;
	font-size: 18px;
	color: #0f172a;
	display: flex;
	align-items: baseline;
	gap: 8px;
}
.pt-board h2 em {
	font-style: normal;
	font-size: 12.5px;
	color: #64748b;
	font-weight: 400;
}
.pt-board ol {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pt-board li {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 8px 10px;
	border-radius: 10px;
	font-size: 13px;
}
.pt-board li:nth-child(odd) {
	background: #fafbfc;
}
.pt-board li.is-me {
	background: var(--pt-soft);
	box-shadow: inset 0 0 0 1px #ddd6fe;
}
.pt-rk {
	flex: 0 0 20px;
	font-size: 12px;
	font-weight: 700;
	color: #94a3b8;
	text-align: center;
}
.pt-board li:nth-child(1) .pt-rk { color: #d97706; }
.pt-board li:nth-child(2) .pt-rk { color: #64748b; }
.pt-board li:nth-child(3) .pt-rk { color: #b45309; }
.pt-rk-ico {
	font-size: 20px;
	line-height: 1;
}
.pt-board li b {
	font-size: 13.5px;
	color: #0f172a;
}
.pt-rk-owner {
	font-size: 12px;
	color: #94a3b8;
}
.pt-rk-lv {
	margin-left: auto;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--pt-main);
	font-variant-numeric: tabular-nums;
}

/* ---------- 成长记录 ---------- */
.pt-log {
	margin-top: 20px;
	background: #fff;
	border: 1px solid var(--pt-line);
	border-radius: 18px;
	padding: 18px 20px 16px;
}
.pt-log h2 {
	margin: 0 0 10px;
	font-size: 18px;
	color: #0f172a;
}
.pt-log ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pt-log li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	border-bottom: 1px dashed #eef2f7;
	font-size: 12.5px;
}
.pt-log li:last-child {
	border-bottom: 0;
}
.pt-log-t {
	flex: 0 0 78px;
	color: #94a3b8;
	font-variant-numeric: tabular-nums;
}
.pt-log-n {
	color: #334155;
}
.pt-log-d {
	margin-left: auto;
	font-variant-numeric: tabular-nums;
	color: #94a3b8;
}
.pt-log-d.is-up {
	color: #b45309;
	font-weight: 600;
}


/* ---------- 进化提示浮层 ---------- */
.pt-evo-toast {
	position: fixed;
	top: 76px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(100deg, #4c1d95 0%, #6d28d9 100%);
	color: #fff;
	font-size: 14px;
	padding: 12px 22px;
	border-radius: 999px;
	box-shadow: 0 12px 30px rgba(76, 29, 149, .35);
	animation: pt-toast 4.2s cubic-bezier(.3, 1.3, .4, 1) both;
	white-space: nowrap;
}
.pt-evo-toast[hidden] {
	display: none !important;
}
.pt-evo-toast b {
	color: #fde68a;
}
@keyframes pt-toast {
	0% { opacity: 0; transform: translate(-50%, -14px) scale(.9); }
	10% { opacity: 1; transform: translate(-50%, 0) scale(1); }
	82% { opacity: 1; transform: translate(-50%, 0) scale(1); }
	100% { opacity: 0; transform: translate(-50%, -10px) scale(.96); }
}
@media (max-width: 640px) {
	.pt-evo-toast {
		font-size: 12.5px;
		padding: 10px 16px;
		white-space: normal;
		width: calc(100% - 40px);
		justify-content: center;
		text-align: center;
	}
}

/* ================================================================
 * 首页板块
 * ================================================================ */
.pk-wrap {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 0 8px;
}
.pk-sec {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 18px 20px 20px;
	margin: 14px 0 6px;
}
.pk-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 14px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.pk-head h2 {
	margin: 3px 0 4px;
	font-size: 19px;
	color: #0f172a;
}
.pk-head p {
	margin: 0;
	font-size: 12.5px;
	color: #64748b;
	max-width: 700px;
	line-height: 1.65;
}
.pk-more {
	font-size: 12.5px;
	color: #0f766e;
	text-decoration: none;
	white-space: nowrap;
	padding-top: 4px;
}
.pk-more:hover {
	text-decoration: underline;
}

.pk-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1px solid #ede9fe;
	border-radius: 14px;
	background: linear-gradient(100deg, #faf5ff 0%, #fffbeb 100%);
	text-decoration: none;
	transition: .18s;
}
.pk-card:hover {
	border-color: #c4b5fd;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(109, 40, 217, .1);
}
.pk-ico {
	font-size: 44px;
	line-height: 1;
	flex: 0 0 auto;
	animation: pt-float 3s ease-in-out infinite;
}
.pk-card b {
	display: block;
	font-size: 15px;
	color: #0f172a;
}
.pk-sub {
	display: block;
	font-size: 12px;
	color: #64748b;
	margin-top: 2px;
}
.pk-main {
	flex: 1 1 auto;
	min-width: 0;
}
.pk-bar {
	display: block;
	height: 7px;
	border-radius: 999px;
	background: #ede9fe;
	margin-top: 6px;
	overflow: hidden;
	max-width: 300px;
}
.pk-bar i {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #8b5cf6, #6d28d9);
}
.pk-coin {
	margin-left: auto;
	flex: 0 0 auto;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 9px;
	padding: 6px 12px;
	font-size: 13px;
	color: #92400e;
	font-weight: 600;
	white-space: nowrap;
}

/* ================================================================
 * 响应式
 * ================================================================ */
@media (max-width: 900px) {
	.pt-top {
		grid-template-columns: minmax(0, 1fr);
	}
	.pt-stage {
		height: 210px;
	}
	.pt-beast {
		font-size: 96px;
	}
	.pt-pane {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 640px) {
	.pt {
		padding: 4px 0 36px;
	}
	/* tab 收成一行三个，说明文字在商店副标题里已经有了 */
	.pt-tabs {
		gap: 6px;
	}
	.pt-tab {
		flex: 1 1 0;
		align-items: center;
		padding: 8px 6px;
		font-size: 12.5px;
		min-width: 0;
	}
	.pt-tab em {
		display: none;
	}
	.pt-species {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.pt-sp {
		padding: 13px 8px 10px;
	}
	.pt-sp-ico {
		font-size: 38px;
	}
	.pt-sp-why {
		min-height: 32px;
		font-size: 11px;
	}
	.pt-sp-evo {
		font-size: 12px;
		gap: 1px;
	}
	.pt-sp-evo em {
		font-size: 8px;
		letter-spacing: -.5px;
	}
	.pt-card,
	.pt-howto,
	.pt-shop,
	.pt-board,
	.pt-log,
	.pt-adopt {
		padding-left: 14px;
		padding-right: 14px;
		border-radius: 15px;
	}
	.pt-stage {
		height: 186px;
	}
	.pt-beast {
		font-size: 84px;
	}
	.pt-beast.is-s2 { font-size: 92px; }
	.pt-beast.is-s3 { font-size: 100px; }
	.pt-beast.is-s4 { font-size: 104px; }
	.pt-beast.is-s5 { font-size: 108px; }
	.pt-wear {
		width: 40px;
		height: 40px;
		border-radius: 11px;
		font-size: 21px;
	}
	.pt-wear.is-gear { font-size: 20px; }
	.pt-gain span {
		margin-left: 0;
		width: 100%;
	}
	.pt-item .pt-btn {
		padding: 6px 9px;
		font-size: 12px;
	}
	.pt-log-t {
		flex: 0 0 62px;
		font-size: 11.5px;
	}
	.pt-rk-owner {
		display: none;
	}
	.pk-sec {
		padding: 15px 14px 16px;
	}
	.pk-ico {
		font-size: 36px;
	}
	.pk-coin {
		padding: 5px 9px;
		font-size: 12px;
	}
}

/* ---------- 榜单：本班 / 两班总榜 ---------- */
.pt-board-h {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.pt-board-h h2 {
	margin: 0;
	font-size: 18px;
	color: #0f172a;
}
.pt-board-sub {
	font-size: 12px;
	color: #8b87a6;
	background: #f5f3fc;
	border: 1px solid #ece9f7;
	border-radius: 999px;
	padding: 2px 9px;
}
.pt-rk-cls {
	font-size: 10px;
	color: #7c3aed;
	background: #f3e8ff;
	border-radius: 4px;
	padding: 1px 5px;
	white-space: nowrap;
}
.pt-board li {
	min-width: 0;
}
.pt-board li b {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
@media (max-width: 560px) {
	.pt-rk-owner {
		display: none;
	}
	.pt-board li {
		gap: 7px;
		padding: 8px 6px;
	}
	.pt-rk-cls {
		font-size: 9px;
		padding: 1px 4px;
	}
	.pt-rk-lv {
		font-size: 12px;
	}
	.pt-board li b {
		font-size: 13px;
	}
}

/* ---------- 榜单前三名：专属领奖台 ---------- */
.pt-podium {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 10px;
	margin: 2px 0 16px;
	padding: 14px 10px 0;
	border-radius: 16px;
	background:
		radial-gradient(ellipse at 50% 120%, #ede9fe 0%, #fafaff 55%, #ffffff 100%);
	border: 1px dashed #ddd6fe;
}
.pt-pod {
	position: relative;
	flex: 0 0 auto;
	width: 132px;
	padding: 16px 8px 12px;
	border-radius: 14px 14px 10px 10px;
	background: #fff;
	border: 2px solid #e5e7eb;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}
.pt-pod.is-1 {
	order: 2;
	width: 152px;
	padding-top: 22px;
	border-color: #fbbf24;
	background: linear-gradient(180deg, #fffbeb 0%, #ffffff 68%);
	box-shadow: 0 8px 22px rgba(217, 119, 6, .18);
}
.pt-pod.is-2 {
	order: 1;
	border-color: #cbd5e1;
	background: linear-gradient(180deg, #f8fafc 0%, #ffffff 68%);
}
.pt-pod.is-3 {
	order: 3;
	border-color: #f0b27a;
	background: linear-gradient(180deg, #fff7ed 0%, #ffffff 68%);
}
.pt-pod.is-me {
	outline: 2px solid #ddd6fe;
	outline-offset: 2px;
}
.pt-pod-medal {
	position: absolute;
	top: -14px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 24px;
	line-height: 1;
	filter: drop-shadow(0 2px 4px rgba(15, 23, 42, .16));
}
.pt-pod-ico {
	font-size: 46px;
	line-height: 1.05;
	filter: drop-shadow(0 4px 8px rgba(109, 40, 217, .16));
}
.pt-pod.is-1 .pt-pod-ico {
	font-size: 58px;
	animation: ptPodFloat 3.4s ease-in-out infinite;
}
@keyframes ptPodFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}
.pt-pod-name {
	font-size: 13.5px;
	color: #0f172a;
	line-height: 1.3;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.pt-pod-owner {
	font-size: 11.5px;
	color: #94a3b8;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.pt-pod-title {
	font-size: 11px;
	color: #7c3aed;
	background: #f5f3ff;
	border-radius: 999px;
	padding: 1px 8px;
}
.pt-pod-lv {
	margin-top: 2px;
	font-size: 12px;
	font-weight: 800;
	color: #d97706;
	font-variant-numeric: tabular-nums;
}

@media (max-width: 620px) {
	.pt-podium { gap: 6px; padding: 12px 4px 0; }
	.pt-pod { width: 96px; padding: 12px 4px 10px; }
	.pt-pod.is-1 { width: 112px; }
	.pt-pod-ico { font-size: 34px; }
	.pt-pod.is-1 .pt-pod-ico { font-size: 42px; }
}

/* ---------- 宠物背包 ---------- */
.pt-bag {
	margin-top: 20px;
	background: #fff;
	border: 1px solid var(--pt-line);
	border-radius: 18px;
	padding: 18px 20px 18px;
}
.pt-bag-h {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 6px;
}
.pt-bag-h h2 {
	margin: 0;
	font-size: 18px;
	color: #0f172a;
}
.pt-bag-h h2 em {
	font-style: normal;
	font-size: 12.5px;
	font-weight: 400;
	color: #64748b;
	margin-left: 6px;
}
.pt-bag-wallet {
	margin-left: auto;
	font-size: 12.5px;
	color: #92400e;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 999px;
	padding: 3px 12px;
}
.pt-bag-wallet b {
	font-variant-numeric: tabular-nums;
}
.pt-bag .pt-sub {
	margin: 0 0 12px;
	font-size: 12.5px;
	color: #64748b;
	line-height: 1.7;
}
.pt-bag-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
	gap: 10px;
}
.pt-bag-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 14px 8px 12px;
	border: 1px solid var(--pt-line);
	border-radius: 14px;
	background: #fcfcfe;
	text-align: center;
	transition: transform .16s ease, box-shadow .16s ease;
}
.pt-bag-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(15, 23, 42, .07);
}
.pt-bag-card.is-on {
	border-color: #c4b5fd;
	background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 70%);
	box-shadow: inset 0 0 0 1px #ede9fe;
}
.pt-bag-card.is-full {
	background: #f8fafc;
	color: #94a3b8;
}
.pt-bag-ico {
	font-size: 38px;
	line-height: 1.1;
}
.pt-bag-name {
	font-size: 13px;
	color: #0f172a;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.pt-bag-meta {
	font-size: 11.5px;
	color: #94a3b8;
}
.pt-bag-tag {
	margin-top: 4px;
	font-size: 11px;
	font-weight: 700;
	color: #6d28d9;
	background: #ede9fe;
	border-radius: 999px;
	padding: 2px 10px;
}
.pt-bag-go {
	margin-top: 4px;
	font-size: 11.5px;
	font-weight: 600;
	color: #6d28d9;
	text-decoration: none;
	border: 1px solid #ddd6fe;
	border-radius: 999px;
	padding: 2px 12px;
	transition: background .15s, color .15s;
}
.pt-bag-go:hover {
	background: #6d28d9;
	border-color: #6d28d9;
	color: #fff;
}
.pt-bag-new {
	border: 1px dashed #c4b5fd;
	border-radius: 14px;
	background: #faf9ff;
	padding: 0;
	overflow: hidden;
}
.pt-bag-new > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	padding: 16px 8px 14px;
}
.pt-bag-new > summary::-webkit-details-marker {
	display: none;
}
.pt-bag-plus {
	font-size: 26px;
	line-height: 1;
	color: #8b5cf6;
}
.pt-bag-new-t {
	font-size: 13px;
	font-weight: 600;
	color: #4c1d95;
}
.pt-bag-new-p {
	font-size: 11.5px;
	color: #a78bfa;
}
.pt-bag-form {
	padding: 0 10px 12px;
}
.pt-bag-species {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 5px;
	margin-bottom: 8px;
}
.pt-bag-sp {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	padding: 6px 2px;
	border: 1px solid var(--pt-line);
	border-radius: 9px;
	background: #fff;
	cursor: pointer;
	font-size: 10.5px;
	color: #64748b;
}
.pt-bag-sp input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.pt-bag-sp-ico {
	font-size: 20px;
	line-height: 1.1;
}
.pt-bag-sp:has(input:checked) {
	border-color: #8b5cf6;
	background: #f5f3ff;
	color: #4c1d95;
}
.pt-bag-form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.pt-bag-form-row input[type="text"] {
	width: 100%;
	padding: 7px 10px;
	border: 1px solid var(--pt-line);
	border-radius: 9px;
	font-size: 12.5px;
}
.pt-bag-form-row .pt-btn {
	width: 100%;
	padding: 8px 10px;
	font-size: 12.5px;
}
.pt-bag-form .pt-hint {
	margin: 8px 0 0;
	font-size: 11.5px;
	color: #64748b;
	line-height: 1.6;
}

/* 榜单公开最终形态 开关 */
.pt-bag-tools{display:inline-flex;align-items:center;gap:10px;}
.pt-reveal{border:1px solid #d9d4f5;background:#f4f2ff;color:#5b4bc4;border-radius:999px;padding:6px 12px;font-size:12px;cursor:pointer;font-weight:600;}
.pt-reveal.is-on{background:#efeaff;border-color:#b9a8f5;color:#4c3bb0;}
.pt-reveal:hover{filter:brightness(0.97);}

/* 2026-11-06：进化计数说明 */
.pt-evo-note{margin:0 0 6px;font-size:12px;line-height:1.6;color:#8b8f9a}
.pt-evo-note+.pt-evo-prog{margin-top:2px}

/* ---------------- 背包扩容：空位 / 扩容卡 ---------------- */

/* 还没住人的空栏位 */
.pt-bag-card.is-empty {
	border-style: dashed;
	border-color: #dbe4f3;
	background: #fbfdff;
}
.pt-bag-card.is-empty .pt-bag-ico {
	font-size: 26px;
	color: #c3d0e4;
}
.pt-bag-card.is-empty .pt-bag-name {
	color: #94a3b8;
	font-weight: 600;
}

/* 花金币扩一个位 */
.pt-bag-card.is-slot {
	border: 1px dashed #bfd4fb;
	background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 70%);
}
.pt-bag-card.is-slot .pt-bag-ico { font-size: 26px; }

.pt-bag-go.is-slot-btn {
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
	background: #eff6ff;
	color: #1d4ed8;
}
.pt-bag-go.is-slot-btn:hover { background: #dbeafe; }
.pt-bag-go.is-slot-btn:disabled { opacity: .6; cursor: default; }
