/* ==========================================================================
   ShareHub 主题介绍页
   ========================================================================== */

.theme-page {
	position: relative;
	background: var(--bg);
	overflow: clip;
}

.theme-container {
	width: min(1140px, calc(100% - 200px));
	margin: 0 auto;
}

/* Hero -------------------------------------------------------------------- */
.theme-hero {
	position: relative;
	padding: 72px 0 66px;
	border-bottom: 1px solid var(--line);
	overflow: hidden;
	background:
		radial-gradient(700px 420px at 8% -10%, rgba(56, 189, 248, .16), transparent 62%),
		radial-gradient(620px 420px at 98% 10%, rgba(167, 139, 250, .12), transparent 66%);
}
.theme-hero-grid-lines {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: .55;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 72px 72px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 90%);
	-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .7), transparent 90%);
}
.theme-hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
	gap: 48px;
	align-items: center;
}
.theme-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--accent);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .17em;
	text-transform: uppercase;
}
.theme-eyebrow i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px rgba(56, 189, 248, .16);
}
.theme-hero h1 {
	margin: 18px 0 20px;
	font-size: clamp(38px, 3.5vw, 50px);
	line-height: 1.07;
	letter-spacing: -.055em;
	font-weight: 800;
}
.theme-hero h1 span {
	color: transparent;
	background: linear-gradient(100deg, #38bdf8 0%, #818cf8 52%, #a78bfa 100%);
	-webkit-background-clip: text;
	background-clip: text;
}
.theme-sub {
	max-width: 620px;
	margin: 0;
	color: var(--text-dim);
	font-size: 14.5px;
	line-height: 1.9;
}
.theme-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}
.theme-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	height: 42px;
	padding: 0 18px;
	border: 1px solid var(--line-strong);
	border-radius: 10px;
	color: var(--text-dim);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.theme-btn.is-primary {
	border-color: transparent;
	background: linear-gradient(135deg, var(--accent), #6366f1);
	color: #04121c;
	box-shadow: 0 12px 28px -16px rgba(56, 189, 248, .85);
}
.theme-btn.is-primary:hover {
	color: #04121c;
	transform: translateY(-1px);
	box-shadow: 0 18px 34px -18px rgba(56, 189, 248, .9);
}
.theme-btn.is-disabled {
	border-color: var(--line);
	background: var(--s1);
	color: var(--muted);
	cursor: not-allowed;
}
.theme-btn.is-light {
	border-color: rgba(255, 255, 255, .2);
	background: rgba(255, 255, 255, .1);
	color: #fff;
}
.theme-btn.is-light:hover {
	color: #fff;
	background: rgba(255, 255, 255, .16);
	transform: translateY(-1px);
}
.theme-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 11.5px;
}
.theme-hero-meta b {
	margin-right: 4px;
	color: var(--text);
	font-size: 13px;
	font-weight: 800;
}
.theme-notice {
	margin: 15px 0 0;
	color: var(--muted);
	font-size: 11.5px;
}

/* Hero visual ------------------------------------------------------------- */
.theme-hero-visual {
	position: relative;
	padding: 0 0 28px;
}
.theme-browser {
	border: 1px solid var(--line-strong);
	border-radius: 16px;
	background: var(--card);
	overflow: hidden;
	box-shadow: 0 40px 90px -60px rgba(0, 0, 0, .85), 0 18px 44px -30px rgba(14, 165, 233, .55);
}
.theme-browser-bar {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 33px;
	padding: 0 12px;
	border-bottom: 1px solid var(--line);
	background: var(--s1);
}
.theme-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
}
.theme-dot.is-red { background: #fb7185; }
.theme-dot.is-yellow { background: #fbbf24; }
.theme-dot.is-green { background: #34d399; }
.theme-browser-url {
	margin-left: 8px;
	padding: 2px 10px;
	border-radius: 6px;
	background: var(--s2);
	color: var(--muted);
	font-size: 10px;
	letter-spacing: .02em;
}
.theme-browser img {
	display: block;
	width: 100%;
	aspect-ratio: 1440 / 1000;
	object-fit: cover;
}
.theme-phone {
	position: absolute;
	right: 8px;
	bottom: 0;
	width: 154px;
	border: 6px solid #0b1220;
	border-radius: 20px;
	overflow: hidden;
	background: #0b1220;
	box-shadow: 0 24px 50px -26px rgba(0, 0, 0, .8);
	transform: rotate(3deg);
}
.theme-phone img {
	display: block;
	width: 100%;
	aspect-ratio: 390 / 844;
	object-fit: cover;
}
.theme-preview-badge {
	position: absolute;
	left: 16px;
	bottom: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 9px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--card);
	color: var(--muted);
	font-size: 10.5px;
	box-shadow: var(--shadow);
}
.theme-preview-badge span {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #34d399;
}

/* Stats ------------------------------------------------------------------- */
.theme-stats {
	border-bottom: 1px solid var(--line);
	background: var(--s1);
}
.theme-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 24px 0;
}
.theme-stats-grid > div {
	padding-left: 24px;
	border-left: 1px solid var(--line);
}
.theme-stats-grid > div:first-child {
	padding-left: 0;
	border-left: 0;
}
.theme-stats-grid strong {
	display: block;
	color: var(--text);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.02em;
}
.theme-stats-grid span {
	display: block;
	margin-top: 2px;
	color: var(--muted);
	font-size: 11.5px;
}

/* Sections ---------------------------------------------------------------- */
.theme-section {
	padding: 76px 0;
	border-bottom: 1px solid var(--line);
}
.theme-section-head {
	max-width: 760px;
	margin-bottom: 32px;
}
.theme-kicker {
	display: inline-block;
	color: var(--accent);
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.theme-section-head h2,
.theme-tech-copy h2,
.theme-log-copy h2,
.theme-final-cta h2 {
	margin: 10px 0 12px;
	font-size: clamp(28px, 3.3vw, 44px);
	line-height: 1.15;
	letter-spacing: -.035em;
}
.theme-section-head p,
.theme-log-copy p,
.theme-tech-copy p,
.theme-final-cta p {
	margin: 0;
	color: var(--text-dim);
	font-size: 13.5px;
	line-height: 1.9;
}
.theme-section-head.is-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	max-width: none;
	gap: 20px;
}
.theme-section-head.is-row h2 { margin-bottom: 0; }
.theme-text-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding-bottom: 3px;
	color: var(--text-dim);
	font-size: 12px;
	white-space: nowrap;
}
.theme-text-link:hover { color: var(--accent); }

/* Features ---------------------------------------------------------------- */
.theme-feature-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}
.theme-feature {
	min-height: 190px;
	padding: 20px 18px 18px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--card);
	transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.theme-feature:hover {
	transform: translateY(-3px);
	border-color: rgba(56, 189, 248, .32);
	background: var(--card-hover);
}
.theme-feature-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}
.theme-feature-icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(56, 189, 248, .2);
	border-radius: 10px;
	background: rgba(56, 189, 248, .08);
	color: var(--accent);
}
.theme-feature-top em {
	color: var(--muted);
	font-size: 10px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: .1em;
}
.theme-feature h3 {
	margin: 0 0 7px;
	color: var(--text);
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -.01em;
}
.theme-feature p {
	margin: 0;
	color: var(--text-dim);
	font-size: 12px;
	line-height: 1.75;
}

/* Latest updates ---------------------------------------------------------- */
.theme-section-latest { background: var(--bg-soft); }
.theme-update-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
.theme-update-card {
	padding: 24px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: var(--card);
}
.theme-update-card.is-current {
	border-color: rgba(56, 189, 248, .36);
	box-shadow: inset 0 1px 0 rgba(56, 189, 248, .14), 0 20px 50px -40px rgba(56, 189, 248, .7);
}
.theme-update-head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 13px;
}
.theme-version {
	color: var(--accent);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -.02em;
}
.theme-version-tag {
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(56, 189, 248, .12);
	color: var(--accent-deep);
	font-size: 10px;
	font-weight: 700;
}
.theme-update-head em {
	margin-left: auto;
	color: var(--muted);
	font-size: 10.5px;
	font-style: normal;
}
.theme-update-card h3 {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 800;
}
.theme-update-card ul,
.theme-log-body ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.theme-update-card li,
.theme-log-body li {
	position: relative;
	padding-left: 14px;
	margin-bottom: 7px;
	color: var(--text-dim);
	font-size: 12px;
	line-height: 1.7;
}
.theme-update-card li::before,
.theme-log-body li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .72em;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--accent);
	opacity: .7;
}

/* Changelog --------------------------------------------------------------- */
.theme-log-grid {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	gap: 60px;
	align-items: start;
}
.theme-log-copy {
	position: sticky;
	top: 96px;
}
.theme-log-note {
	margin-top: 24px;
	padding: 16px;
	border: 1px solid rgba(56, 189, 248, .2);
	border-radius: 12px;
	background: rgba(56, 189, 248, .06);
}
.theme-log-note span {
	display: block;
	color: var(--muted);
	font-size: 10.5px;
}
.theme-log-note strong {
	display: block;
	margin: 2px 0 1px;
	color: var(--accent);
	font-size: 27px;
	font-weight: 800;
	line-height: 1.2;
}
.theme-log-note em {
	color: var(--text-dim);
	font-size: 11px;
	font-style: normal;
}
.theme-log-list {
	border-left: 1px solid var(--line);
	padding-left: 28px;
}
.theme-log-item {
	position: relative;
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 18px;
	padding-bottom: 30px;
}
.theme-log-item:last-child { padding-bottom: 0; }
.theme-log-item::before {
	content: "";
	position: absolute;
	left: -34px;
	top: 4px;
	width: 9px;
	height: 9px;
	border: 2px solid var(--accent);
	border-radius: 50%;
	background: var(--bg);
	box-shadow: 0 0 0 3px rgba(56, 189, 248, .1);
}
.theme-log-version strong {
	display: block;
	color: var(--text);
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
}
.theme-log-version em {
	display: block;
	margin-top: 3px;
	color: var(--muted);
	font-size: 10.5px;
	font-style: normal;
}
.theme-log-body h3 {
	margin: 0 0 7px;
	color: var(--text);
	font-size: 14.5px;
	font-weight: 800;
}
.theme-log-body h3 span {
	margin-left: 8px;
	padding: 2px 6px;
	border-radius: 999px;
	background: rgba(56, 189, 248, .1);
	color: var(--accent-deep);
	font-size: 9.5px;
	font-weight: 700;
	vertical-align: 2px;
}
.theme-log-body li { font-size: 11.5px; margin-bottom: 4px; }

/* Tech / fit -------------------------------------------------------------- */
.theme-section-tech { background: var(--bg-soft); }
.theme-tech-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
	gap: 48px;
	align-items: stretch;
}
.theme-tech-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.theme-spec-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin-top: 24px;
}
.theme-spec-grid > div {
	padding: 14px 15px;
	border: 1px solid var(--line);
	border-radius: 11px;
	background: var(--card);
}
.theme-spec-grid span {
	display: block;
	color: var(--muted);
	font-size: 10.5px;
}
.theme-spec-grid strong {
	display: block;
	margin-top: 3px;
	color: var(--text);
	font-size: 18px;
	font-weight: 800;
}
.theme-fit-card {
	padding: 28px;
	border-radius: 18px;
	background:
		radial-gradient(280px 200px at 100% 0%, rgba(56, 189, 248, .2), transparent 70%),
		linear-gradient(145deg, #111b2a, #0a111c);
	color: #fff;
	box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .8);
}
.theme-fit-card .theme-kicker { color: #7dd3fc; }
.theme-fit-card h3 {
	margin: 10px 0 18px;
	font-size: 24px;
	letter-spacing: -.03em;
}
.theme-fit-card ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.theme-fit-card li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 11px 0;
	border-top: 1px solid rgba(255, 255, 255, .1);
	color: rgba(255, 255, 255, .82);
	font-size: 12.5px;
	line-height: 1.6;
}
.theme-fit-card li span {
	flex: none;
	color: #7dd3fc;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
}
.theme-fit-line {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	color: rgba(255, 255, 255, .55);
	font-size: 11.5px;
	line-height: 1.7;
}

/* FAQ --------------------------------------------------------------------- */
.theme-faq-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.theme-faq-grid article {
	padding: 20px;
	border: 1px solid var(--line);
	border-radius: 13px;
	background: var(--card);
}
.theme-faq-grid h3 {
	margin: 0 0 7px;
	color: var(--text);
	font-size: 14px;
	font-weight: 800;
}
.theme-faq-grid p {
	margin: 0;
	color: var(--text-dim);
	font-size: 12px;
	line-height: 1.8;
}

/* Final CTA --------------------------------------------------------------- */
.theme-final-cta {
	position: relative;
	padding: 58px 0;
	overflow: hidden;
	background:
		radial-gradient(620px 260px at 8% 0%, rgba(56, 189, 248, .22), transparent 70%),
		radial-gradient(520px 300px at 100% 100%, rgba(167, 139, 250, .18), transparent 70%),
		linear-gradient(135deg, #0b1420, #080c14);
	color: #fff;
}
.theme-final-grid {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}
.theme-final-cta .theme-kicker { color: #7dd3fc; }
.theme-final-cta h2 { color: #fff; margin-bottom: 9px; }
.theme-final-cta p { color: rgba(255, 255, 255, .62); max-width: 620px; }
.theme-final-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex: none;
}
.theme-final-actions .theme-btn.is-disabled {
	border-color: rgba(255, 255, 255, .15);
	background: rgba(255, 255, 255, .06);
	color: rgba(255, 255, 255, .4);
}

/* Dark mode details ------------------------------------------------------- */
html.scheme-dark .theme-section-latest,
html.scheme-dark .theme-section-tech { background: var(--bg-soft); }
html.scheme-dark .theme-final-cta {
	background:
		radial-gradient(620px 260px at 8% 0%, rgba(56, 189, 248, .26), transparent 70%),
		radial-gradient(520px 300px at 100% 100%, rgba(167, 139, 250, .2), transparent 70%),
		linear-gradient(135deg, #0d1828, #070b12);
}
html.scheme-light .theme-browser { box-shadow: 0 34px 70px -50px rgba(15, 23, 42, .45), 0 12px 30px -24px rgba(14, 165, 233, .4); }
html.scheme-light .theme-phone { border-color: #dbe3ee; background: #dbe3ee; }
html.scheme-light .theme-preview-badge { background: #fff; }
html.scheme-light .theme-log-item::before { background: #f6f8fc; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1040px) {
	.theme-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 34px; }
	.theme-hero h1 { font-size: clamp(38px, 5vw, 52px); }
	.theme-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.theme-log-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
	.theme-tech-grid { gap: 30px; }
}

@media (max-width: 820px) {
	.theme-hero { padding: 50px 0 42px; }
	.theme-hero-grid { grid-template-columns: 1fr; gap: 34px; }
	.theme-hero-visual { max-width: 680px; margin: 0 auto; width: 100%; }
	.theme-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
	.theme-stats-grid > div:nth-child(3) { padding-left: 0; border-left: 0; }
	.theme-section { padding: 56px 0; }
	.theme-section-head.is-row { align-items: flex-start; flex-direction: column; }
	.theme-update-grid { grid-template-columns: 1fr; }
	.theme-log-grid { grid-template-columns: 1fr; gap: 28px; }
	.theme-log-copy { position: static; }
	.theme-log-list { padding-left: 20px; }
	.theme-log-item { grid-template-columns: 92px minmax(0, 1fr); }
	.theme-log-item::before { left: -26px; }
	.theme-tech-grid { grid-template-columns: 1fr; }
	.theme-final-grid { flex-direction: column; align-items: flex-start; }
	.theme-final-actions { width: 100%; }
}

@media (max-width: 560px) {
	.theme-container { width: calc(100% - 32px); }
	.theme-hero { padding: 38px 0 34px; }
	.theme-hero h1 { font-size: 36px; line-height: 1.08; }
	.theme-sub { font-size: 13px; }
	.theme-actions .theme-btn { flex: 1 1 auto; }
	.theme-actions { gap: 8px; }
	.theme-hero-meta { gap: 8px 14px; font-size: 10.5px; }
	.theme-phone { width: 108px; right: 0; bottom: 4px; border-width: 4px; border-radius: 15px; }
	.theme-preview-badge { display: none; }
	.theme-stats-grid { padding: 18px 0; }
	.theme-stats-grid strong { font-size: 21px; }
	.theme-feature-grid { grid-template-columns: 1fr; }
	.theme-feature { min-height: 0; }
	.theme-section { padding: 44px 0; }
	.theme-section-head h2, .theme-tech-copy h2, .theme-log-copy h2, .theme-final-cta h2 { font-size: 28px; }
	.theme-spec-grid { grid-template-columns: 1fr 1fr; }
	.theme-faq-grid { grid-template-columns: 1fr; }
	.theme-final-cta { padding: 42px 0; }
	.theme-final-actions .theme-btn { width: 100%; }
	.theme-log-item { grid-template-columns: 1fr; gap: 5px; padding-bottom: 24px; }
	.theme-log-version em { display: inline; margin-left: 7px; }
}


@media (max-width: 1079px) {
	.theme-container { width: calc(100% - 48px); }
}
