/* 税务风险首页 — 深色终端风（参考风控极客） */
:root {
	--sw-gold: #C8A45C;
	--sw-gold-light: #E8D5A3;
	--sw-blue-text: #B0C4E8;
	--sw-blue-muted: #6B8CC0;
	--sw-glass: rgba(8, 18, 55, 0.55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
	min-height: 100%;
	font-family: -apple-system, "PingFang SC", "Noto Sans SC", "Helvetica Neue", sans-serif;
	color: #fff;
	background: radial-gradient(ellipse at 20% 0%, #1a4db5, #0f2e7a, #0a1f5a 60%, #06153d);
	background-attachment: fixed;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

body.sw-home {
	padding-bottom: env(safe-area-inset-bottom, 0);
}

.sw-home-page {
	position: relative;
	min-height: 100vh;
}

.sw-home-bg {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(200, 164, 92, 0.012) 2px, rgba(200, 164, 92, 0.012) 4px);
}

/* 浮动卡片 — 不规则散落 + 3D 漂浮 */
.sw-float-cards {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: visible;
	z-index: 1;
	perspective: 1000px;
}

.sw-float-card {
	position: absolute;
	width: 152px;
	opacity: 0;
	transition: opacity 0.75s ease;
	will-change: transform;
}

.sw-float-card.show {
	opacity: 1;
}

.sw-float-card-inner {
	padding: 12px 13px;
	border-radius: 10px;
	background: rgba(8, 18, 55, 0.72);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(200, 164, 92, 0.18);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	transition: transform 0.35s ease-out;
	transform-style: preserve-3d;
}

.sw-float-card .fc-line {
	height: 2px;
	margin-bottom: 10px;
	background: linear-gradient(90deg, transparent, rgba(200, 164, 92, 0.45), transparent);
}

.sw-float-card .fc-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
}

.sw-float-card .fc-title {
	font-size: 11px;
	font-weight: 600;
	color: var(--sw-gold-light);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sw-float-card .fc-sub {
	font-size: 9px;
	color: var(--sw-blue-muted);
	line-height: 1.4;
	padding-left: 2px;
}

.sw-float-card .fc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	font-size: 11px;
	color: var(--sw-gold);
	flex-shrink: 0;
}

/* 参考站不规则位置 */
.sw-float-card-0 { top: 16%; left: 2%; animation: swDrift0 11s ease-in-out infinite; }
.sw-float-card-1 { top: 26%; right: 1%; left: auto; animation: swDrift1 9s ease-in-out 2s infinite; }
.sw-float-card-2 { top: 38%; left: 5%; animation: swDrift2 12s ease-in-out 4s infinite; }
.sw-float-card-3 { top: 48%; right: 3%; left: auto; animation: swDrift3 10s ease-in-out 1s infinite; }
.sw-float-card-4 { top: 58%; left: 14%; animation: swDrift4 13s ease-in-out 3s infinite; }

.sw-float-card-0.show { animation: swDrift0 11s ease-in-out infinite, swCardGlow 4s ease-in-out infinite; }
.sw-float-card-1.show { animation: swDrift1 9s ease-in-out 2s infinite, swCardGlow 4.5s ease-in-out 0.5s infinite; }
.sw-float-card-2.show { animation: swDrift2 12s ease-in-out 4s infinite, swCardGlow 5s ease-in-out 1s infinite; }
.sw-float-card-3.show { animation: swDrift3 10s ease-in-out 1s infinite, swCardGlow 4.2s ease-in-out 1.5s infinite; }
.sw-float-card-4.show { animation: swDrift4 13s ease-in-out 3s infinite, swCardGlow 5.5s ease-in-out 2s infinite; }

@keyframes swDrift0 {
	0%, 100% { transform: translate(0, 0); }
	25% { transform: translate(6px, -12px); }
	50% { transform: translate(-4px, -8px); }
	75% { transform: translate(3px, -14px); }
}

@keyframes swDrift1 {
	0%, 100% { transform: translate(0, 0); }
	30% { transform: translate(-8px, -10px); }
	60% { transform: translate(5px, -14px); }
	80% { transform: translate(-3px, -6px); }
}

@keyframes swDrift2 {
	0%, 100% { transform: translate(0, 0); }
	20% { transform: translate(4px, -8px); }
	55% { transform: translate(-6px, -13px); }
	85% { transform: translate(2px, -5px); }
}

@keyframes swDrift3 {
	0%, 100% { transform: translate(0, 0); }
	35% { transform: translate(-5px, -11px); }
	70% { transform: translate(7px, -7px); }
}

@keyframes swDrift4 {
	0%, 100% { transform: translate(0, 0); }
	40% { transform: translate(3px, -12px); }
	65% { transform: translate(-4px, -9px); }
}

@keyframes swCardGlow {
	0%, 100% { filter: drop-shadow(0 0 6px rgba(200, 164, 92, 0.08)); }
	50% { filter: drop-shadow(0 0 14px rgba(200, 164, 92, 0.22)); }
}

@media (max-width: 479px) {
	.sw-float-card {
		width: 118px;
	}

	.sw-float-card-inner {
		padding: 9px 10px;
	}

	.sw-float-card .fc-title { font-size: 10px; }
	.sw-float-card .fc-sub { font-size: 8px; }
	.sw-float-card .fc-icon { width: 16px; height: 16px; font-size: 10px; }

	/* 移动端：不规则四角散落，5 张均可见 */
	.sw-float-card-0 { top: 6%; left: -2px; }
	.sw-float-card-1 { top: 10%; right: -4px; left: auto; }
	.sw-float-card-2 { top: 20%; left: 0; }
	.sw-float-card-3 { top: 24%; right: 0; left: auto; }
	.sw-float-card-4 { top: 34%; left: 8%; }
}

@media (min-width: 480px) and (max-width: 767px) {
	.sw-float-card { width: 136px; }
	.sw-float-card-0 { top: 12%; left: 1%; }
	.sw-float-card-1 { top: 22%; right: 0; left: auto; }
	.sw-float-card-2 { top: 34%; left: 3%; }
	.sw-float-card-3 { top: 44%; right: 2%; left: auto; }
	.sw-float-card-4 { top: 54%; left: 10%; }
}

/* 顶栏 */
.sw-home-head {
	position: relative;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: calc(12px + env(safe-area-inset-top, 0)) 16px 8px;
}

.sw-home-back {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	color: var(--sw-blue-text);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.08);
	text-decoration: none;
}

.sw-home-reports {
	font-size: 12px;
	color: var(--sw-blue-text);
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px solid rgba(200, 164, 92, 0.2);
	background: rgba(200, 164, 92, 0.08);
}

.sw-home-reports:active { opacity: 0.8; }

/* Hero */
.sw-hero {
	position: relative;
	z-index: 5;
	min-height: calc(92vh - 60px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 16px 80px;
	text-align: center;
	overflow: hidden;
	cursor: default;
}

.sw-hero-main {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 520px;
	pointer-events: auto;
}

.sw-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgba(200, 164, 92, 0.25);
	background: rgba(200, 164, 92, 0.1);
	margin-bottom: 20px;
}

.sw-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sw-gold);
	animation: swPulse 2s ease-in-out infinite;
}

@keyframes swPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.sw-badge span {
	font-size: 11px;
	color: var(--sw-gold-light);
	letter-spacing: 0.08em;
	font-weight: 500;
}

.sw-hero h1 {
	font-size: clamp(2rem, 8vw, 3.5rem);
	font-weight: 700;
	letter-spacing: 0.04em;
	color: #fff;
	margin-bottom: 12px;
}

.sw-typewriter {
	height: 28px;
	font-size: 13px;
	color: var(--sw-blue-text);
	letter-spacing: 0.12em;
	margin-bottom: 32px;
}

.sw-typewriter::after {
	content: "|";
	animation: swBlink 1s step-end infinite;
	color: var(--sw-gold-light);
}

@keyframes swBlink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

/* 搜索框 */
.sw-search-wrap {
	width: 100%;
	max-width: 420px;
	position: relative;
}

.sw-search-box {
	background: var(--sw-glass);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(200, 164, 92, 0.12);
	border-radius: 14px;
	padding: 4px;
}

.sw-search-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 4px 12px;
}

.sw-search-icon {
	flex-shrink: 0;
	color: var(--sw-gold);
}

.sw-search-input {
	flex: 1;
	min-width: 0;
	background: transparent;
	border: none;
	outline: none;
	color: #fff;
	font-size: 14px;
	padding: 10px 0;
}

.sw-search-input::placeholder { color: var(--sw-blue-muted); }

.sw-scan-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border: none;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #06153d;
	background: linear-gradient(135deg, #E8D5A3, #C8A45C);
	cursor: pointer;
	transition: opacity 0.2s, transform 0.15s;
}

.sw-scan-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.sw-scan-btn:not(:disabled):active { transform: scale(0.97); }

.sw-scan-btn .sw-spin {
	width: 14px;
	height: 14px;
	border: 2px solid var(--sw-gold);
	border-top-color: transparent;
	border-radius: 50%;
	animation: swSpin 0.8s linear infinite;
}

@keyframes swSpin { to { transform: rotate(360deg); } }

.sw-search-line {
	height: 1px;
	margin: 0 16px;
	background: linear-gradient(90deg, transparent, rgba(200, 164, 92, 0.3), transparent);
}

.sw-hot-tags {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.sw-hot-label {
	font-size: 11px;
	color: var(--sw-blue-muted);
}

.sw-hot-tag {
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	color: var(--sw-blue-text);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	cursor: pointer;
}

.sw-hot-tag:active { border-color: rgba(200, 164, 92, 0.25); color: var(--sw-gold-light); }

/* 数据统计 */
.sw-stats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(16px, 5vw, 36px);
	margin-top: 40px;
	flex-wrap: wrap;
}

.sw-stat-val {
	font-size: 20px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.02em;
}

.sw-stat-label {
	font-size: 10px;
	color: var(--sw-blue-muted);
	margin-top: 2px;
}

.sw-scroll-hint {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: var(--sw-blue-muted);
	font-size: 9px;
	letter-spacing: 0.15em;
	animation: swBounce 2s ease-in-out infinite;
}

@keyframes swBounce {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50% { transform: translateX(-50%) translateY(4px); }
}

/* 核心能力 */
.sw-features {
	position: relative;
	z-index: 5;
	padding: 48px 16px calc(24px + env(safe-area-inset-bottom, 0));
}

.sw-features-head {
	text-align: center;
	margin-bottom: 28px;
}

.sw-features-head h2 {
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.04em;
	margin-bottom: 6px;
}

.sw-features-head p {
	font-size: 12px;
	color: var(--sw-blue-muted);
}

.sw-features-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	max-width: 960px;
	margin: 0 auto;
}

@media (min-width: 540px) {
	.sw-features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.sw-features-grid { grid-template-columns: repeat(5, 1fr); }
}

.sw-feature-card {
	background: var(--sw-glass);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(200, 164, 92, 0.12);
	border-radius: 10px;
	padding: 16px;
	transition: transform 0.2s;
}

.sw-feature-card:active { transform: translateY(-2px); }

.sw-feature-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.sw-feature-icon {
	width: 36px;
	height: 36px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(200, 164, 92, 0.08);
	border: 1px solid rgba(200, 164, 92, 0.15);
	color: var(--sw-gold);
	font-size: 16px;
	flex-shrink: 0;
}

.sw-feature-card h3 {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	margin: 0;
	flex: 1;
	min-width: 0;
	line-height: 1.35;
}

.sw-feature-card p {
	font-size: 11px;
	line-height: 1.55;
	color: var(--sw-blue-muted);
	padding-left: 46px;
}

/* 页脚 */
.sw-footer {
	position: relative;
	z-index: 5;
	padding: 24px 16px 16px;
	border-top: 1px solid rgba(200, 164, 92, 0.06);
	text-align: center;
}

.sw-footer-brand {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 4px;
}

.sw-footer-sub {
	font-size: 10px;
	color: var(--sw-blue-muted);
	margin-bottom: 12px;
}

.sw-footer-copy {
	font-size: 10px;
	color: rgba(107, 140, 192, 0.5);
}

/* 终端客服 */
.sw-terminal {
	position: fixed;
	right: 12px;
	bottom: calc(68px + env(safe-area-inset-bottom, 0));
	z-index: 100;
	width: min(360px, calc(100vw - 24px));
	max-height: min(480px, calc(100vh - 140px));
	display: flex;
	flex-direction: column;
	background: var(--sw-glass);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(200, 164, 92, 0.15);
	border-radius: 14px;
	overflow: hidden;
	transition: height 0.3s, width 0.3s;
}

.sw-terminal.collapsed {
	width: auto;
	max-height: none;
	height: 44px;
}

.sw-terminal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	border-bottom: 1px solid rgba(200, 164, 92, 0.1);
	cursor: pointer;
	flex-shrink: 0;
}

.sw-terminal-head .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #40A060;
	margin-right: 8px;
}

.sw-terminal-head .title {
	font-size: 12px;
	color: var(--sw-gold-light);
	flex: 1;
}

.sw-terminal-body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sw-terminal.collapsed .sw-terminal-body,
.sw-terminal.collapsed .sw-terminal-foot { display: none; }

.sw-term-msg {
	max-width: 88%;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 11px;
	line-height: 1.5;
	white-space: pre-line;
}

.sw-term-msg.bot {
	align-self: flex-start;
	background: rgba(200, 164, 92, 0.08);
	border: 1px solid rgba(200, 164, 92, 0.12);
	color: var(--sw-blue-text);
}

.sw-term-msg.user {
	align-self: flex-end;
	background: rgba(200, 164, 92, 0.2);
	color: #fff;
}

.sw-term-time {
	font-size: 9px;
	color: var(--sw-blue-muted);
	margin-top: 4px;
}

.sw-terminal-foot {
	display: flex;
	gap: 8px;
	padding: 10px 12px;
	border-top: 1px solid rgba(200, 164, 92, 0.1);
	flex-shrink: 0;
}

.sw-terminal-foot input {
	flex: 1;
	min-width: 0;
	background: rgba(6, 21, 61, 0.5);
	border: 1px solid rgba(200, 164, 92, 0.15);
	border-radius: 8px;
	padding: 8px 10px;
	font-size: 12px;
	color: #fff;
	outline: none;
}

.sw-terminal-foot input::placeholder { color: var(--sw-blue-muted); }

.sw-terminal-foot button {
	padding: 8px 12px;
	border: none;
	border-radius: 8px;
	background: var(--sw-gold);
	color: #06153d;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

/* 授权弹层 */
.tax-mask {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(15, 23, 42, 0.45);
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
}
.tax-mask.show { display: flex; }

.sw-guest-banner {
	margin: 12px 16px 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: rgba(59, 130, 246, 0.15);
	border: 1px solid rgba(59, 130, 246, 0.25);
	color: #bfdbfe;
	font-size: 13px;
	line-height: 1.5;
}

.sw-share-mode-btn {
	display: block;
	width: 100%;
	margin: 0 0 10px;
	padding: 12px 14px;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	background: #fff;
	font-size: 14px;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.sw-share-mode-btn:disabled {
	opacity: 0.6;
}

.sw-share-mode-btn.primary {
	border-color: #3b82f6;
	background: #eff6ff;
	color: #1d4ed8;
	font-weight: 600;
}

.tax-sheet {
	width: min(420px, 100%);
	background: #fff;
	border-radius: 20px 20px 16px 16px;
	padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0));
	box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.18);
}

.tax-sheet h3 {
	font-size: 17px;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 6px;
}

.tax-sheet .hint {
	font-size: 12px;
	color: #64748b;
	line-height: 1.5;
	margin-bottom: 16px;
}

.tax-field { margin-bottom: 12px; }
.tax-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}
.tax-field input {
	width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px 14px;
	font-size: 14px;
	outline: none;
	box-sizing: border-box;
}
.tax-field input:focus { border-color: #C8A45C; }

.tax-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}
.tax-actions button {
	flex: 1;
	border: none;
	border-radius: 999px;
	padding: 13px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}
.tax-actions .btn-cancel {
	background: #f1f5f9;
	color: #475569;
}
.tax-actions .btn-primary {
	background: linear-gradient(145deg, #C8A45C, #A0843C);
	color: #06153d;
}
.tax-actions .btn-primary:disabled { opacity: 0.65; }

/* 首页 — 邀请 / 顾问 / 匹配记录 */
.sw-main {
	position: relative;
	z-index: 2;
	padding: 0 16px 8px;
	margin-top: -8px;
}

.sw-invite-card {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 14px;
	margin-bottom: 14px;
	border-radius: 14px;
	background: rgba(12, 28, 72, 0.72);
	border: 1px solid rgba(200, 164, 92, 0.16);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.sw-invite-text {
	flex: 1;
	min-width: 0;
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: var(--sw-blue-text);
	font-weight: 500;
}

.sw-invite-actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.sw-invite-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 72px;
	height: 58px;
	padding: 6px;
	border-radius: 10px;
	border: 1px solid rgba(200, 164, 92, 0.35);
	background: rgba(8, 18, 55, 0.55);
	color: var(--sw-gold-light);
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
}

.sw-invite-btn svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

.sw-advisor {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	margin-bottom: 14px;
	border-radius: 14px;
	background: rgba(12, 28, 72, 0.78);
	border: 1px solid rgba(200, 164, 92, 0.14);
}

.sw-advisor-avatar {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
	background: rgba(200, 164, 92, 0.12);
}

.sw-advisor-text {
	flex: 1;
	min-width: 0;
}

.sw-advisor-text strong {
	display: block;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 3px;
}

.sw-advisor-text span {
	font-size: 12px;
	color: var(--sw-blue-muted);
}

.sw-advisor-actions {
	display: flex;
	gap: 10px;
	flex-shrink: 0;
}

.sw-advisor-btn {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	text-decoration: none;
	border: none;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}

.sw-advisor-btn.chat {
	background: rgba(8, 18, 55, 0.6);
	border: 1.5px solid rgba(200, 164, 92, 0.45);
	color: var(--sw-gold-light);
}

.sw-advisor-btn.phone {
	background: linear-gradient(145deg, #C8A45C, #A0843C);
	color: #06153d;
	box-shadow: 0 3px 12px rgba(200, 164, 92, 0.25);
}

.sw-advisor-btn svg {
	width: 18px;
	height: 18px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

.sw-record-card {
	display: block;
	padding: 16px;
	margin-bottom: 20px;
	border-radius: 14px;
	background: rgba(12, 28, 72, 0.82);
	border: 1px solid rgba(200, 164, 92, 0.14);
}

.sw-record-card[hidden] {
	display: none;
}

.sw-record-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 12px;
}

.sw-record-status {
	font-size: 12px;
	font-weight: 600;
	color: var(--sw-gold);
}

.sw-record-status.ready {
	color: #4ade80;
}

.sw-record-status.fail {
	color: #f87171;
}

.sw-record-body strong {
	display: block;
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 8px;
	line-height: 1.35;
	word-break: break-all;
}

.sw-record-meta {
	font-size: 13px;
	color: var(--sw-blue-muted);
	line-height: 1.65;
}

.sw-record-actions {
	margin-top: 14px;
}

.sw-btn-view-report {
	display: block;
	width: 100%;
	border: none;
	border-radius: 999px;
	padding: 13px 16px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	background: linear-gradient(145deg, #C8A45C, #A0843C);
	color: #06153d;
	-webkit-tap-highlight-color: transparent;
}

.sw-toast {
	position: fixed;
	left: 50%;
	bottom: calc(24px + env(safe-area-inset-bottom, 0));
	transform: translateX(-50%) translateY(12px);
	padding: 10px 18px;
	border-radius: 999px;
	background: rgba(8, 18, 55, 0.92);
	border: 1px solid rgba(200, 164, 92, 0.25);
	color: #fff;
	font-size: 13px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s, transform 0.2s;
	z-index: 200;
}

.sw-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* —— 分享方式选择 —— */
.sw-sheet-mode {
	padding-top: 22px;
}

.sw-sheet-mode-head {
	margin-bottom: 18px;
}

.sw-sheet-mode-head h3 {
	font-size: 18px;
	margin-bottom: 6px;
}

.sw-sheet-mode-head p {
	font-size: 13px;
	color: #64748b;
	line-height: 1.5;
	margin: 0;
}

.sw-sheet-mode-close {
	width: 100%;
	margin-top: 4px;
}

.sw-share-mode-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	margin: 0 0 12px;
	padding: 16px 16px;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	font-size: 15px;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	transition: transform 0.15s, box-shadow 0.15s;
}

.sw-share-mode-btn:active {
	transform: scale(0.98);
}

.sw-share-mode-btn:disabled {
	opacity: 0.6;
}

.sw-share-mode-btn.primary {
	border-color: rgba(200, 164, 92, 0.45);
	background: linear-gradient(135deg, #fff9eb 0%, #fff3d6 100%);
	color: #7c5c1e;
	font-weight: 700;
	box-shadow: 0 4px 16px rgba(200, 164, 92, 0.18);
}

.sw-share-mode-btn .sub {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: #64748b;
	margin-top: 4px;
}

.sw-share-mode-btn.primary .sub {
	color: #a0843c;
}

.sw-share-mode-note {
	font-size: 12px;
	color: #94a3b8;
	line-height: 1.55;
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 10px;
	background: #f1f5f9;
}

/* —— 分享海报全屏页 —— */
.sw-share-page {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 300;
	flex-direction: column;
	background: linear-gradient(180deg, #0a1f5a 0%, #06153d 40%, #0f172a 100%);
	overflow: hidden;
}

.sw-share-page.show {
	display: flex;
}

.sw-share-head {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	min-height: calc(48px + env(safe-area-inset-top, 0));
	padding: calc(10px + env(safe-area-inset-top, 0)) 16px 10px;
	background: rgba(6, 21, 61, 0.85);
	border-bottom: 1px solid rgba(200, 164, 92, 0.15);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.sw-share-head h1 {
	font-size: 17px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 0.04em;
}

.sw-share-back {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	margin-top: calc(env(safe-area-inset-top, 0) / 2);
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.sw-share-scroll {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 0));
}

.sw-share-poster {
	position: relative;
	padding: 28px 20px 24px;
	border-radius: 20px;
	background: linear-gradient(165deg, rgba(18, 42, 110, 0.95) 0%, rgba(8, 22, 68, 0.98) 100%);
	border: 1px solid rgba(200, 164, 92, 0.28);
	box-shadow:
		0 20px 50px rgba(0, 0, 0, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.06);
	overflow: hidden;
}

.sw-share-poster::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -20%;
	width: 60%;
	height: 80%;
	background: radial-gradient(circle, rgba(200, 164, 92, 0.12) 0%, transparent 70%);
	pointer-events: none;
}

.sw-poster-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(200, 164, 92, 0.15);
	border: 1px solid rgba(200, 164, 92, 0.35);
	font-size: 11px;
	font-weight: 600;
	color: var(--sw-gold-light);
	letter-spacing: 0.08em;
	margin-bottom: 14px;
}

.sw-poster-badge-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--sw-gold);
	box-shadow: 0 0 8px rgba(200, 164, 92, 0.8);
}

.sw-poster-title {
	font-size: 22px;
	font-weight: 800;
	color: #fff;
	line-height: 1.3;
	margin-bottom: 8px;
	letter-spacing: 0.02em;
}

.sw-poster-sub {
	font-size: 13px;
	color: var(--sw-blue-text);
	line-height: 1.55;
	margin-bottom: 22px;
}

.sw-poster-qr-wrap {
	display: flex;
	justify-content: center;
	margin-bottom: 14px;
}

.sw-poster-qr-box {
	padding: 14px;
	border-radius: 16px;
	background: #fff;
	box-shadow:
		0 8px 32px rgba(0, 0, 0, 0.25),
		0 0 0 4px rgba(200, 164, 92, 0.2);
	line-height: 0;
}

.sw-poster-qr-box canvas,
.sw-poster-qr-box img {
	display: block;
	border-radius: 8px;
}

.sw-poster-qr-box img.sw-share-qr-img {
	width: 200px;
	height: 200px;
	-webkit-touch-callout: default;
	pointer-events: auto;
	user-select: none;
	-webkit-user-select: none;
}

.sw-poster-qr-loading {
	margin: 0;
	padding: 80px 0;
	text-align: center;
	font-size: 13px;
	color: var(--sw-blue-muted);
	line-height: 1.4;
}

.sw-poster-scan {
	text-align: center;
	font-size: 12px;
	color: var(--sw-blue-muted);
	margin-bottom: 20px;
	letter-spacing: 0.06em;
}

.sw-poster-feats {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding-top: 18px;
	border-top: 1px solid rgba(200, 164, 92, 0.15);
}

.sw-poster-feat {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

.sw-poster-feat .ico {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(200, 164, 92, 0.15);
	border: 1px solid rgba(200, 164, 92, 0.3);
	color: var(--sw-gold);
	font-size: 14px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-poster-feat .ico svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sw-poster-feat span {
	font-size: 11px;
	color: var(--sw-blue-text);
	line-height: 1.35;
}

.sw-share-url-card {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.sw-share-url-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.sw-share-url-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--sw-gold-light);
	letter-spacing: 0.06em;
}

.sw-share-copy-btn {
	flex-shrink: 0;
	padding: 6px 14px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(145deg, #C8A45C, #A0843C);
	color: #06153d;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	-webkit-tap-highlight-color: transparent;
}

.sw-share-url-text {
	font-size: 11px;
	color: var(--sw-blue-muted);
	line-height: 1.5;
	word-break: break-all;
	margin: 0;
}

.sw-share-steps {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
	margin-top: 20px;
	padding: 16px 8px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
}

.sw-share-step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
}

.sw-share-step .ico {
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: rgba(200, 164, 92, 0.12);
	border: 1px solid rgba(200, 164, 92, 0.25);
	color: var(--sw-gold-light);
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-share-step .ico svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sw-share-step p {
	font-size: 11px;
	color: var(--sw-blue-text);
	line-height: 1.35;
	margin: 0;
}

.sw-share-step-arrow {
	flex-shrink: 0;
	font-size: 12px;
	color: rgba(200, 164, 92, 0.5);
	padding-top: 14px;
	letter-spacing: -2px;
}

/* —— 支付弹层 —— */
.sw-sheet-pay {
	text-align: center;
}

.sw-pay-icon {
	width: 52px;
	height: 52px;
	margin: 0 auto 12px;
	border-radius: 16px;
	background: linear-gradient(145deg, #fff9eb, #ffeec8);
	color: #a0843c;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sw-pay-icon svg {
	width: 28px;
	height: 28px;
}

.sw-pay-amount {
	font-size: 36px;
	font-weight: 800;
	color: #0f172a;
	margin: 8px 0 20px;
	letter-spacing: -0.02em;
}

.sw-pay-amount::first-letter {
	font-size: 22px;
	font-weight: 700;
	margin-right: 2px;
}
