@charset "UTF-8";
/**
 * 内容生成 页面样式
 * 内容生成 Page Styles
 * 依赖 main.css 中的 CSS 变量和公共组件
 *
 * @package RiaFlow_Theme
 * @version 2.0.0
 */

.content-generation-page .page-bg-wrapper {
	left: -760px;
	height: 820px;
	background-size: 840px 1320px;
}

.cg-hero-section {
	padding: calc(var(--nav-container-height) + 128px) var(--spacing-md) 100px;
}

.cg-hero-inner,
.cg-intro-inner,
.cg-features-inner,
.cg-workflow-inner,
.cg-scenarios-inner {
	max-width: var(--container-max-width);
	margin: 0 auto;
}

.cg-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
	gap: 64px;
	align-items: center;
}


.cg-hero-title {
	font-size: 56px;
	font-weight: 700;
	color: var(--text-primary);
	line-height: 1.25;
	margin-bottom: 16px;
}

.cg-hero-subtitle {
	font-size: 26px;
	color: var(--text-primary);
	line-height: 1.42;
	margin-bottom: 18px;
}

.cg-hero-desc {
	max-width: 560px;
	color: var(--text-tertiary);
	font-size: 16px;
	line-height: 1.85;
	margin-bottom: 32px;
}

.cg-hero-actions,
.cg-panel-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.cg-hero-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 34px;
}

.cg-hero-tags span,
.cg-video-settings span,
.cg-image-prompt span,
.cg-editor-chip-row span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--border-radius-sm);
	background: #F5F1FF;
	color: var(--accent-color);
	font-size: 14px;
	font-weight: 500;
	padding: 7px 12px;
}
.cg-hero-tags span
{
 border-radius: var(--border-radius-lg);
}

.cg-hero-visual {
	min-width: 0;
}

.cg-hero-banner {
	width: 100%;
	height: auto;
	display: block;
	border-radius: var(--border-radius-lg);
	object-fit: cover;
}

.cg-studio-card {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	border: 1px solid rgba(225, 222, 238, 0.92);
	background: linear-gradient(180deg, #FFFFFF 0%, #FBFAFF 100%);
	box-shadow: 0 24px 70px rgba(31, 22, 74, 0.13);
}

.cg-studio-card::before {
	content: "";
	position: absolute;
	inset: auto -28% -26% 38%;
	height: 280px;
	background: radial-gradient(circle, rgba(24, 92, 255, 0.15) 0, rgba(24, 92, 255, 0) 68%);
	pointer-events: none;
}

.cg-studio-topbar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 20px;
	border-bottom: 1px solid #EEF0F3;
}

.cg-studio-topbar span {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #FF6B6B;
}

.cg-studio-topbar span:nth-child(2) { background: #FFC857; }
.cg-studio-topbar span:nth-child(3) { background: #43D17A; }

.cg-studio-topbar strong {
	margin-left: 8px;
	color: var(--text-primary);
	font-size: 14px;
}

.cg-studio-tabs {
	display: flex;
	gap: 10px;
	padding: 18px 20px 0;
}

.cg-studio-tabs span {
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius-pill);
	color: var(--text-secondary);
	font-size: 14px;
	font-weight: 600;
	padding: 8px 15px;
}

.cg-studio-tabs .active {
	color: var(--accent-color);
	border-color: transparent;
	background: linear-gradient(#fff, #fff) padding-box, var(--primary-gradient) border-box;
}

.cg-studio-body {
	position: relative;
	display: grid;
	gap: 18px;
	padding: 20px;
}

.cg-prompt-box,
.cg-output-card,
.cg-panel-card,
.cg-value-card,
.cg-step,
.cg-scenario-grid article {
	border: 1px solid var(--border-color);
	background: var(--bg-card);
	box-shadow: var(--shadow-soft);
}

.cg-prompt-box {
	border-radius: 18px;
	padding: 20px;
}

.cg-prompt-box small {
	display: block;
	color: var(--accent-color);
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 8px;
}

.cg-prompt-box strong {
	display: block;
	color: var(--text-primary);
	font-size: 18px;
	margin-bottom: 10px;
}

.cg-prompt-box p {
	color: var(--text-tertiary);
	font-size: 14px;
	line-height: 1.7;
	margin-bottom: 16px;
}

.cg-prompt-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cg-prompt-actions span {
	border-radius: 8px;
	background: #F6F7FB;
	color: var(--text-secondary);
	font-size: 12px;
	padding: 6px 9px;
}

.cg-output-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 12px;
}

.cg-output-card {
	min-height: 130px;
	border-radius: 16px;
	padding: 14px;
	overflow: hidden;
}

.cg-output-card em,
.cg-image-prompt strong,
.cg-demo-sidebar strong {
	display: block;
	color: var(--text-primary);
	font-style: normal;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 12px;
}

.cg-output-card--text div,
.cg-editor-line {
	height: 10px;
	border-radius: 8px;
	background: #DDE7FF;
	margin-bottom: 10px;
}

.cg-output-card--text div:nth-child(3) { width: 82%; }
.cg-output-card--text div:nth-child(4) { width: 58%; }

.cg-output-card--image,
.cg-output-card--video {
	position: relative;
	background: linear-gradient(135deg, #F5F8FF 0%, #F7F1FF 100%);
}

.cg-output-card--image i,
.cg-output-card--video i {
	display: block;
	height: 78px;
	border-radius: 12px;
	background: linear-gradient(135deg, #7D34DC 0%, #185CFF 100%);
	opacity: 0.18;
}

.cg-output-card--video i {
	border-radius: 14px;
	background: linear-gradient(135deg, #05173E 0%, #7D34DC 100%);
}

.cg-intro-section,
.cg-features-section,
.cg-workflow-section,
.cg-scenarios-section {
	padding:var(--spacing-3xl) var(--spacing-md) 80px;
}

.cg-scenarios-section .geo-value-grid {
	grid-template-columns: repeat(3, 1fr);
}

.cg-value-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
}

.cg-value-card {
	border-radius: var(--border-radius-lg);
	padding: 28px 24px;
	min-height: 232px;
}

.cg-value-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	margin-bottom: 22px;
}

.cg-value-card h3,
.cg-step h4,
.cg-scenario-grid strong {
	color: var(--text-primary);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: 12px;
}

.cg-value-card p,
.cg-step p,
.cg-scenario-grid p {
	color: var(--text-tertiary);
	font-size: 14px;
	line-height: 1.7;
}


.content-generation-page .geo-tabs {
	display: flex;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 40px;
}

.content-generation-page .geo-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	border-radius: var(--border-radius-pill);
	border: 1px solid var(--border-color);
	background: #fff;
	color: var(--text-primary);
	font-size: 18px;
	font-weight: 500;
	padding: 10px 24px;
	cursor: pointer;
	transition: all var(--transition-fast);
}

.content-generation-page .geo-tab:hover,
.content-generation-page .geo-tab.active {
	color: var(--accent-color);
	border-color: transparent;
	background: linear-gradient(#fff, #fff) padding-box, var(--primary-gradient) border-box;
}

.content-generation-page .geo-tab.active {
	font-weight: 700;
}

.content-generation-page .geo-panel {
	display: none;
	animation: cgFadeIn 0.35s ease;
}

.content-generation-page .geo-panel.active {
	display: block;
}

@keyframes cgFadeIn {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.cg-panel-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(360px, 510px);
	gap: 44px;
	align-items: stretch;
	border-radius: var(--border-radius-lg);
	padding: 46px;
}

.cg-panel-title {
	color: var(--text-primary);
	font-size: 30px;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: 14px;
}

.cg-panel-desc {
	color: var(--text-secondary);
	font-size: 16px;
	line-height: 1.8;
	margin-bottom: 24px;
}

.cg-feature-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.cg-feature-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: var(--text-primary);
	font-size: 14px;
	line-height: 1.65;
}

.cg-feature-list img {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	margin-top: 2px;
}

.cg-feature-list strong {
	color: var(--text-primary);
}

.cg-panel-actions {
	margin-top: 30px;
}

.cg-inline-link {
	color: var(--accent-color);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.cg-inline-link:hover {
	opacity: 0.82;
}

.cg-panel-visual {
	position: relative;
	min-height: 420px;
	border-radius: 22px;
	background: linear-gradient(145deg, #F9FAFF 0%, #F5F0FF 100%);
	border: 1px solid rgba(225, 222, 238, 0.92);
	overflow: hidden;
	padding: 22px;
}

.cg-copy-demo {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr);
	gap: 16px;
}

.cg-demo-sidebar,
.cg-demo-editor,
.cg-image-prompt,
.cg-video-frame,
.cg-video-settings {
	border: 1px solid rgba(225, 222, 238, 0.92);
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 16px 36px rgba(31, 22, 74, 0.08);
}

.cg-demo-sidebar {
	border-radius: 16px;
	padding: 16px;
}

.cg-demo-sidebar span {
	display: block;
	border-radius: 10px;
	background: #F6F7FB;
	color: var(--text-secondary);
	font-size: 12px;
	margin-bottom: 9px;
	padding: 8px 10px;
}

.cg-demo-sidebar span:nth-child(2) {
	background: #F1ECFF;
	color: var(--accent-color);
	font-weight: 700;
}

.cg-demo-editor {
	border-radius: 18px;
	padding: 18px;
	align-self: stretch;
}

.cg-demo-toolbar {
	display: flex;
	gap: 7px;
	margin-bottom: 20px;
}

.cg-demo-toolbar span {
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: #F1ECFF;
}

.cg-demo-toolbar span:nth-child(even) { background: #E7EEFF; }

.cg-demo-editor h4 {
	color: var(--text-primary);
	font-size: 18px;
	margin-bottom: 20px;
}

.cg-editor-line.wide { width: 96%; }
.cg-editor-line { width: 82%; height: 12px; }
.cg-editor-line.short { width: 56%; }

.cg-editor-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 26px;
}

.cg-editor-chip-row span {
	font-size: 12px;
	padding: 6px 9px;
}

.cg-image-demo {
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 18px;
}

.cg-image-prompt {
	border-radius: 18px;
	padding: 18px;
}

.cg-image-prompt p {
	color: var(--text-tertiary);
	font-size: 14px;
	line-height: 1.65;
	margin-bottom: 14px;
}

.cg-image-prompt div,
.cg-video-settings {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cg-image-prompt span,
.cg-video-settings span {
	font-size: 12px;
	padding: 6px 9px;
}

.cg-image-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.cg-image-grid i {
	display: block;
	min-height: 124px;
	border-radius: 18px;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)),
		linear-gradient(135deg, #7D34DC 0%, #185CFF 100%);
	box-shadow: 0 14px 32px rgba(24, 92, 255, 0.14);
}

.cg-image-grid i:nth-child(2) { background: linear-gradient(135deg, #24B86A 0%, #185CFF 100%); }
.cg-image-grid i:nth-child(3) { background: linear-gradient(135deg, #FFB84D 0%, #7D34DC 100%); }
.cg-image-grid i:nth-child(4) { background: linear-gradient(135deg, #05173E 0%, #7D34DC 100%); }

.cg-video-demo {
	display: grid;
	grid-template-rows: 1fr auto;
	gap: 18px;
}

.cg-video-frame {
	position: relative;
	border-radius: 22px;
	background: linear-gradient(135deg, #101728 0%, #392068 55%, #185CFF 100%);
	min-height: 300px;
	overflow: hidden;
}

.cg-video-frame::before,
.cg-video-frame::after {
	content: "";
	position: absolute;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
}

.cg-video-frame::before {
	width: 180px;
	height: 180px;
	right: -48px;
	top: -38px;
}

.cg-video-frame::after {
	width: 240px;
	height: 80px;
	left: 32px;
	bottom: 82px;
	transform: rotate(-12deg);
}

.cg-play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 66px;
	height: 66px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	transform: translate(-50%, -50%);
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.cg-play::after {
	content: "";
	position: absolute;
	left: 27px;
	top: 21px;
	border-left: 18px solid var(--accent-color);
	border-top: 12px solid transparent;
	border-bottom: 12px solid transparent;
}

.cg-video-timeline {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 22px;
	display: grid;
	grid-template-columns: 1.3fr 0.8fr 1fr 1.1fr;
	gap: 8px;
}

.cg-video-timeline i {
	height: 34px;
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.32);
}

.cg-video-settings {
	border-radius: 18px;
	padding: 15px;
}

.cg-workflow-steps {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 18px;
}

.cg-step {
	border-radius: var(--border-radius-lg);
	padding: 26px 20px;
	min-height: 220px;
}

.cg-step span {
	display: inline-flex;
	color: var(--accent-color);
	font-size: 22px;
	font-weight: 700;
	margin-bottom: 22px;
}

.cg-step h4 {
	font-size: 18px;
}

.cg-scenario-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.cg-scenario-grid article {
	border-radius: var(--border-radius-lg);
	padding: 26px 24px;
	min-height: 150px;
}

.cg-scenario-grid strong {
	display: block;
	font-size: 19px;
}

@media (max-width: 1200px) {
	.cg-hero-inner,
	.cg-panel-card {
		grid-template-columns: 1fr;
	}

	.cg-hero-visual {
		max-width: 680px;
		width: 100%;
		margin: 0 auto;
	}

	.cg-value-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cg-scenarios-section .geo-value-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cg-workflow-steps {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 900px) {
	.cg-hero-section {
		padding-top: calc(var(--nav-container-height) + 82px);
	}

	.cg-hero-title {
		font-size: 40px;
	}

	.cg-hero-subtitle {
		font-size: 22px;
	}

	.cg-intro-section,
	.cg-features-section,
	.cg-workflow-section,
	.cg-scenarios-section {
		padding: 64px var(--spacing-md);
	}

	.cg-output-grid,
	.cg-copy-demo,
	.cg-scenario-grid,
	.cg-workflow-steps,
	.cg-scenarios-section .geo-value-grid {
		grid-template-columns: 1fr;
	}

	.cg-panel-card {
		padding: 30px;
	}

	.cg-panel-visual {
		min-height: 360px;
	}
}

@media (max-width: 640px) {
	.cg-hero-inner {
		gap: 40px;
	}

	.cg-hero-title {
		font-size: 34px;
	}

	.cg-hero-subtitle {
		font-size: 19px;
	}

	.cg-hero-actions,
	.cg-panel-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.cg-hero-actions .btn,
	.cg-panel-actions .btn {
		width: 100%;
		justify-content: center;
	}

	.cg-value-grid,
	.cg-image-grid {
		grid-template-columns: 1fr;
	}

	.content-generation-page .geo-tab {
		width: 100%;
		font-size: 16px;
	}

	.cg-panel-card {
		padding: 24px 18px;
	}

	.cg-panel-title {
		font-size: 25px;
	}

	.cg-video-frame {
		min-height: 240px;
	}
}

