:root {
	--color-primary: #ff5d97;
	--color-primary-light: #ff8ab4;
	--color-bg-page: #f5f6f8;
	--color-header-bg: #1a1a24;
	--header-height: 64px;
	--content-padding: 20px;
	--radius-card: 12px;
	--shadow-card: 0 4px 20px rgba(23, 48, 88, 0.08);
	--shadow-card-hover: 0 12px 32px rgba(23, 48, 88, 0.14);
	--content-max-width: 1200px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	overflow-x: hidden;
}

html,
body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
		'Microsoft YaHei', sans-serif;
	color: #333;
	background: var(--color-bg-page);
}

body {
	overflow-x: hidden;
	min-width: 0;
}

img {
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

button,
input {
	font-family: inherit;
}

.content-wrap {
	max-width: var(--content-max-width);
	margin: 0 auto;
	padding: 0 var(--content-padding);
}

/* Header */
.app-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-height);
	background: var(--color-header-bg);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.app-header::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 93, 151, 0.35), transparent);
}

.app-header__inner {
	height: 100%;
	display: flex;
	align-items: center;
	gap: 20px;
}

.app-header__logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	height: 40px;
}

.app-header__logo-img {
	height: 100%;
	width: auto;
	display: block;
	object-fit: contain;
	border-radius: 6px;
}

.app-header__search {
	width: 240px;
	flex-shrink: 0;
	position: relative;
}

.app-header__search-input {
	width: 100%;
	height: 36px;
	padding: 0 14px 0 36px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
	font-size: 14px;
	outline: none;
	transition: border-color 0.2s, background 0.2s;
}

.app-header__search-input::placeholder {
	color: rgba(255, 255, 255, 0.4);
}

.app-header__search-input:hover,
.app-header__search-input:focus {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 93, 151, 0.45);
}

.app-header__search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	width: 16px;
	height: 16px;
	color: rgba(255, 255, 255, 0.45);
	pointer-events: none;
}

.app-header__nav {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	justify-content: center;
}

.app-header__nav-item {
	padding: 8px 14px;
	color: rgba(255, 255, 255, 0.75);
	font-size: 15px;
	position: relative;
	white-space: nowrap;
	border-radius: 8px;
	transition: color 0.2s, background 0.2s;
}

.app-header__nav-item:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

.app-header__nav-item--active {
	color: var(--color-primary);
}

.app-header__nav-item--active::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 2px;
	transform: translateX(-50%);
	width: 20px;
	height: 2px;
	background: var(--color-primary);
	border-radius: 1px;
}

.app-header__actions {
	flex-shrink: 0;
}

.app-header__login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 22px;
	border-radius: 20px;
	background: var(--color-primary);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s, box-shadow 0.2s;
}

.app-header__login:hover {
	background: #e04a82;
	box-shadow: 0 4px 16px rgba(255, 93, 151, 0.35);
	color: #fff;
}

/* Home */
.home-page {
	padding-bottom: 48px;
	background: var(--color-bg-page);
}

.home-top {
	position: relative;
	padding-bottom: 8px;
}

.home-hero {
	min-height: 390px;
	padding-bottom: 24px;
	background: url('../image/center.jpg') center / cover no-repeat;
	position: relative;
}

.home-hero__inner {
	position: relative;
	z-index: 1;
	padding-top: 66px;
	text-align: center;
	color: #fff;
}

.home-hero__badge {
	display: inline-block;
	margin: 0 0 20px;
	padding: 8px 22px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 1px;
	border-radius: 20px;
	color: #fff;
	background: linear-gradient(90deg, #ff4ac8 0%, #ff8880 100%);
	box-shadow: 0 4px 16px rgba(255, 74, 200, 0.28);
}

.home-hero__title {
	margin: 0 auto 26px;
	font-size: 44px;
	font-weight: 700;
	letter-spacing: 3px;
	color: #ff4545;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
}

.home-hero__subtitle {
	margin: 0 0 12px;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 2px;
	color: #ffe033;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.home-hero__desc {
	margin: 0 0 36px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: 2px;
	color: #6dd8c8;
	text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
}

.home-download__list {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.home-download__item {
	width: 240px;
	flex: 0 0 auto;
	height: 64px;
	background-image: url('../image/btn-down-bg.png');
	background-repeat: no-repeat;
	background-position: 0 0;
	transition: background-position 0.2s;
}

.home-download__item:hover {
	background-position: 0 -64px;
}

.home-download__item--android .home-download__icon {
	background-position: -30px 0;
}

.home-download__item--shop {
	background-position: -240px 0;
}

.home-download__item--shop:hover {
	background-position: -240px -64px;
}

.home-download__item--shop .home-download__icon {
	background-position: -60px 0;
}

.home-download__icon {
	display: inline-block;
	width: 30px;
	height: 35px;
	margin-top: -10px;
	margin-right: 10px;
	vertical-align: middle;
	background-image: url('../image/icon.png');
	background-repeat: no-repeat;
	background-position: 0 0;
}

.home-download__item a {
	display: inline-block;
	width: 100%;
	height: 100%;
	line-height: 64px;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
}

.home-game-bar-wrap {
	margin-top: 30px;
	position: relative;
	z-index: 2;
}

.game-type-bar {
	width: 100%;
	height: 140px;
	padding: 0 20px;
	background: #fff;
	border-radius: 20px;
	box-shadow: var(--shadow-card-hover);
	display: flex;
	align-items: center;
	gap: 12px;
}

.game-type-bar__arrow {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border: none;
	padding: 0;
	cursor: pointer;
	background: var(--color-bg-page);
	border-radius: 50%;
	position: relative;
	transition: background 0.2s;
}

.game-type-bar__arrow::before {
	content: '';
	position: absolute;
	top: 50%;
	width: 8px;
	height: 8px;
	border-top: 2px solid #999;
	border-left: 2px solid #999;
	transform: translateY(-50%) rotate(-45deg);
}

.game-type-bar__arrow--left::before {
	left: 13px;
}

.game-type-bar__arrow--right::before {
	right: 13px;
	transform: translateY(-50%) rotate(135deg);
}

.game-type-bar__arrow:hover {
	background: #fff5f8;
}

.game-type-bar__arrow:hover::before {
	border-color: var(--color-primary);
}

.game-type-bar__scroll {
	flex: 1;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}

.game-type-bar__scroll::-webkit-scrollbar {
	display: none;
}

.game-type-bar__list {
	display: flex;
	gap: 8px;
	min-height: 120px;
	align-items: center;
}

.game-type-bar__item {
	flex-shrink: 0;
	width: 88px;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.game-type-bar__link {
	display: block;
	width: 88px;
	text-align: center;
	text-decoration: none;
}

.game-type-bar__link:hover .game-type-bar__name {
	color: var(--color-primary);
}

.game-type-bar__link:hover .game-type-bar__icon {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(255, 93, 151, 0.25);
}

.game-type-bar__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s, box-shadow 0.2s;
	background: #f5f5f5;
}

.game-type-bar__icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.game-type-bar__name {
	margin: 8px 0 0;
	padding: 0 4px;
	font-size: 12px;
	color: #666;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s;
}

.home-recommend {
	margin-top: 16px;
}

.home-recommend__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.home-recommend__title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}

.home-recommend__icon {
	flex-shrink: 0;
	display: block;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: linear-gradient(145deg, #ff9ec4 0%, var(--color-primary) 52%, #e04a82 100%);
	box-shadow: 0 4px 14px rgba(255, 93, 151, 0.32);
	position: relative;
	overflow: hidden;
}

.home-recommend__icon::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.42) 0%, transparent 58%);
}

.home-recommend__icon::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 16px;
	height: 16px;
	transform: translate(-50%, -50%);
	background: #fff;
	clip-path: polygon(
		50% 0%,
		61% 35%,
		98% 35%,
		68% 57%,
		79% 91%,
		50% 70%,
		21% 91%,
		32% 57%,
		2% 35%,
		39% 35%
	);
}

.home-recommend__title {
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	color: #1a1a1a;
}

.home-recommend__grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px 16px;
	min-height: 120px;
}

.home-load-tip,
.home-load-error {
	grid-column: 1 / -1;
	padding: 40px 20px;
	text-align: center;
	color: #999;
	font-size: 14px;
}

.home-load-error a {
	color: var(--color-primary);
	margin-left: 6px;
}

.peiwan-card {
	width: 100%;
	margin: 0;
	display: block;
	background: #fff;
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	transition: transform 0.25s, box-shadow 0.25s;
}

.peiwan-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card-hover);
}

.peiwan-card__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.peiwan-card__avatar-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	background: #f0f0f0;
}

.peiwan-card__online {
	position: absolute;
	left: 8px;
	top: 8px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	font-size: 11px;
	color: #fff;
	background: rgba(0, 0, 0, 0.65);
	border-radius: 4px;
	z-index: 2;
}

.peiwan-card__online-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #71edf8;
}

.peiwan-card__online--off .peiwan-card__online-dot {
	background: rgba(255, 255, 255, 0.75);
}

.peiwan-card__done-num {
	position: absolute;
	left: 8px;
	bottom: 8px;
	padding: 2px 8px;
	font-size: 11px;
	color: #fff;
	background: rgba(0, 0, 0, 0.65);
	border-radius: 4px;
	z-index: 2;
}

.peiwan-card__avatar {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	transition: transform 0.35s;
}

.peiwan-card:hover .peiwan-card__avatar {
	transform: scale(1.04);
}

.peiwan-card__info {
	padding: 12px 14px 16px;
	box-sizing: border-box;
	overflow: hidden;
}

.peiwan-card__name-row {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	margin: 0 0 6px;
	min-width: 0;
}

.peiwan-card__nickname {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.peiwan-card__sex {
	flex-shrink: 0;
	font-size: 14px;
	line-height: 1;
}

.peiwan-card__sex--male {
	color: #3a89ff;
}

.peiwan-card__sex--female {
	color: #f87696;
}

.peiwan-card__city {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	max-width: 72px;
	margin-left: auto;
	padding: 2px 8px;
	font-size: 11px;
	line-height: 1.4;
	color: #5a7a8a;
	background: linear-gradient(135deg, rgba(90, 168, 196, 0.12), rgba(90, 168, 196, 0.06));
	border: 1px solid rgba(90, 168, 196, 0.18);
	border-radius: 999px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.peiwan-card__summary {
	margin: 0 0 10px;
	font-size: 12px;
	line-height: 1.5;
	color: #999;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 36px;
}

.peiwan-card__meta {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.peiwan-card__price-row {
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.peiwan-card__price {
	flex-shrink: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--color-primary);
}

.peiwan-card__unit {
	flex-shrink: 0;
	font-size: 12px;
	color: #999;
}

.peiwan-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.peiwan-card__order-rate {
	padding: 2px 8px;
	font-size: 11px;
	line-height: 1.5;
	color: #ff2464;
	background: rgba(255, 99, 150, 0.12);
	border-radius: 4px;
}

.peiwan-card__tag {
	padding: 2px 8px;
	font-size: 11px;
	line-height: 1.5;
	color: var(--color-primary);
	background: #fff5f8;
	border-radius: 4px;
	word-break: break-word;
}

/* Call float */
.call-peiwan-float__bottom {
	position: fixed;
	left: 50%;
	bottom: 32px;
	transform: translateX(-50%);
	z-index: 50;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 28px;
	background: linear-gradient(135deg, var(--color-primary), #ff8ab5);
	border-radius: 50px;
	box-shadow: 0 8px 32px rgba(255, 93, 151, 0.45);
	text-decoration: none;
	color: #fff;
	transition: transform 0.2s, box-shadow 0.2s;
}

.call-peiwan-float__bottom:hover {
	transform: translateX(-50%) translateY(-2px);
	box-shadow: 0 12px 40px rgba(255, 93, 151, 0.55);
	color: #fff;
}

.call-peiwan-float__bottom-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.call-peiwan-float__bottom-title {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
}

.call-peiwan-float__bottom-sub {
	font-size: 12px;
	opacity: 0.9;
	line-height: 1.2;
}

.call-peiwan-float__side {
	position: fixed;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 50;
	padding: 16px 10px;
	writing-mode: vertical-rl;
	letter-spacing: 2px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(180deg, var(--color-primary), #ff8ab5);
	border-radius: 12px 0 0 12px;
	box-shadow: -4px 4px 20px rgba(255, 93, 151, 0.35);
	text-decoration: none;
	transition: padding 0.2s, box-shadow 0.2s;
}

.call-peiwan-float__side:hover {
	padding-right: 14px;
	box-shadow: -6px 6px 24px rgba(255, 93, 151, 0.45);
	color: #fff;
}

/* Footer */
.app-footer {
	position: relative;
	background: var(--color-header-bg);
	color: rgba(255, 255, 255, 0.45);
	padding: 36px 0 120px;
	font-size: 12px;
	line-height: 1.6;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.app-footer::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 93, 151, 0.35), transparent);
}

.app-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.app-footer__links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

.app-footer__link-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.65);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.app-footer__link-pill:hover {
	color: #fff;
	background: rgba(255, 93, 151, 0.12);
	border-color: rgba(255, 93, 151, 0.35);
}

.app-footer__brand {
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.72);
	text-align: center;
	line-height: 1.8;
}

.app-footer__brand-affiliation {
	font-size: 13px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.48);
}

.app-footer__licenses {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px 2px;
	width: 100%;
}

.app-footer__license {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 6px;
	border-radius: 6px;
	color: rgba(255, 255, 255, 0.42);
	white-space: nowrap;
	transition: color 0.2s, background 0.2s;
}

.app-footer__license:hover {
	color: rgba(255, 255, 255, 0.78);
	background: rgba(255, 255, 255, 0.05);
}

.app-footer__meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 720px;
	padding-top: 4px;
}

.app-footer__meta-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 12px;
	text-align: center;
}

.app-footer__meta-text {
	color: rgba(255, 255, 255, 0.38);
}

.app-footer__meta-label {
	color: rgba(255, 255, 255, 0.35);
}

.app-footer__meta-label::after {
	content: '：';
}

.app-footer__meta-email {
	color: rgba(255, 255, 255, 0.55);
	transition: color 0.2s;
}

.app-footer__meta-email:hover {
	color: var(--color-primary-light);
}

@media (max-width: 1200px) {
	.home-recommend__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 960px) {
	.app-header__nav {
		display: none;
	}

	.app-header__search {
		flex: 1;
		width: auto;
		min-width: 0;
	}

	.app-header__logo {
		height: 32px;
	}

	.app-header__inner {
		gap: 10px;
	}

	.home-page {
		padding-bottom: 24px;
	}

	.home-hero {
		min-height: 280px;
		padding-bottom: 16px;
	}

	.home-hero__inner {
		padding-top: 36px;
	}

	.home-hero__badge {
		margin-bottom: 12px;
		padding: 6px 14px;
		font-size: 13px;
	}

	.home-hero__title {
		margin-bottom: 14px;
		font-size: 28px;
		letter-spacing: 1px;
	}

	.home-hero__subtitle {
		font-size: 18px;
	}

	.home-hero__desc {
		margin-bottom: 24px;
		font-size: 15px;
	}

	.home-download__item {
		width: 160px;
		height: 48px;
		background-size: 480px 96px;
	}

	.home-download__item:hover {
		background-position: 0 -48px;
	}

	.home-download__item--shop {
		background-position: -160px 0;
	}

	.home-download__item--shop:hover {
		background-position: -160px -48px;
	}

	.home-download__item a {
		line-height: 48px;
		font-size: 14px;
	}

	.home-download__icon {
		width: 22px;
		height: 26px;
		margin-top: -6px;
		margin-right: 6px;
		background-size: 66px 26px;
	}

	.home-download__item--android .home-download__icon {
		background-position: -22px 0;
	}

	.home-download__item--shop .home-download__icon {
		background-position: -44px 0;
	}

	.home-game-bar-wrap {
		margin-top: 16px;
	}

	.game-type-bar {
		height: 120px;
		padding: 0 10px;
		border-radius: 14px;
	}

	.game-type-bar__arrow {
		display: none;
	}

	.home-recommend__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.call-peiwan-float__bottom,
	.call-peiwan-float__side {
		display: none;
	}

	.app-footer {
		padding: 24px 0 28px;
		font-size: 11px;
	}

	.app-footer__brand {
		font-size: 13px;
		padding: 0 8px;
	}

	.app-footer__brand-affiliation {
		display: block;
		margin-top: 4px;
		font-size: 12px;
	}

	.app-footer__licenses {
		flex-direction: column;
		gap: 4px;
	}

	.app-footer__license {
		white-space: normal;
		text-align: center;
		line-height: 1.5;
	}
}

@media (max-width: 640px) {
	.home-hero__title {
		font-size: 22px;
	}

	.home-download__list {
		gap: 10px;
	}

	.home-download__item {
		width: 140px;
	}
}
