/**
 * TrustyGEO Products 前端样式
 * 3CE 风格产品展示系统
 */

/* ========================================
   变量定义
======================================== */
:root {
	--tgp-primary: #000000;
	--tgp-secondary: #666666;
	--tgp-accent: #d4a5a5;
	--tgp-accent-hover: #c99494;
	--tgp-light: #f8f6f4;
	--tgp-bg: #f8f6f4;
	--tgp-white: #ffffff;
	--tgp-border: #e5e5e5;
	--tgp-shadow: rgba(0, 0, 0, 0.1);
	--tgp-transition: all 0.3s ease;
	--tgp-radius: 16px;
	--tgp-radius-sm: 12px;
	--tgp-radius-full: 9999px;
}

/* ========================================
   产品网格
======================================== */
.tgp-products-grid {
	display: grid;
	gap: 24px;
	margin: 0 -12px;
	padding: 0 12px;
}

.tgp-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}
.tgp-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}
.tgp-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}
.tgp-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1024px) {
	.tgp-columns-5 {
		grid-template-columns: repeat(4, 1fr);
	}
	.tgp-columns-4 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.tgp-columns-5,
	.tgp-columns-4,
	.tgp-columns-3 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.tgp-columns-5,
	.tgp-columns-4,
	.tgp-columns-3,
	.tgp-columns-2 {
		grid-template-columns: 1fr;
	}
}

/* ========================================
   产品卡片
======================================== */
.tgp-product-card {
	background: #fff;
	border-radius: var(--tgp-radius);
	overflow: hidden;
	transition: var(--tgp-transition);
}

.tgp-product-card:hover {
	box-shadow: 0 10px 40px var(--tgp-shadow);
	transform: translateY(-5px);
}

.tgp-product-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.tgp-product-image {
	position: relative;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--tgp-light);
}

.tgp-product-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.tgp-product-card:hover .tgp-product-image img {
	transform: scale(1.08);
}

.tgp-placeholder-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--tgp-light);
	color: var(--tgp-secondary);
	font-size: 14px;
}

/* ========================================
   产品徽章
======================================== */
.tgp-product-badges {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tgp-badge {
	display: inline-block;
	padding: 4px 10px;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-radius: 2px;
}

.tgp-badge-new {
	background: var(--tgp-primary);
	color: #fff;
}

.tgp-badge-best {
	background: var(--tgp-accent);
	color: #fff;
}

/* ========================================
   产品信息
======================================== */
.tgp-product-info {
	padding: 16px;
}

.tgp-product-title {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--tgp-primary);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tgp-product-price {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.tgp-price-current,
.tgp-price-sale {
	font-size: 16px;
	font-weight: 600;
	color: var(--tgp-primary);
}

.tgp-price-original {
	font-size: 14px;
	color: var(--tgp-secondary);
	text-decoration: line-through;
}

/* ========================================
   产品详情页模块通用样式
======================================== */
.tgp-module {
	margin: 0;
	padding: 80px 0;
	background: var(--tgp-white);
}

.tgp-module.tgp-product-highlights,
.tgp-module.tgp-usage-steps,
.tgp-module.tgp-certifications {
	background: var(--tgp-bg);
}

.tgp-module-header {
	text-align: center;
	margin-bottom: 64px;
}

.tgp-module-title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 400;
	color: var(--tgp-primary);
	letter-spacing: 2px;
}

.tgp-module-subtitle {
	margin: 0;
	font-size: 14px;
	color: var(--tgp-secondary);
}

.tgp-module-description {
	margin: 0 0 12px;
	color: var(--tgp-secondary);
	font-size: 14px;
	line-height: 1.6;
}

.tgp-module-tip {
	margin: 0;
	padding: 12px 16px;
	background: #fffbeb;
	border-radius: var(--tgp-radius-sm);
	color: var(--tgp-secondary);
	font-size: 14px;
}

/* ========================================
   Module 3a: 产品配方 (Formula)
======================================== */
.tgp-product-formula .tgp-formula-list {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 25px;
}

@media (min-width: 768px) {
	.tgp-product-formula .tgp-formula-list {
		grid-template-columns: repeat(auto-fit, 300px);
		gap: 50px;
		justify-content: center;
	}
}

.tgp-formula-item {
	background: var(--tgp-bg);
	border-radius: var(--tgp-radius);
	overflow: hidden;
	transition: var(--tgp-transition);
}

.tgp-formula-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tgp-formula-image {
	aspect-ratio: 3/4;
	overflow: hidden;
}

.tgp-formula-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tgp-formula-content {
	padding: 16px;
	text-align: center;
}

.tgp-formula-name {
	font-size: 16px;
	font-weight: 500;
	color: var(--tgp-primary);
	margin-bottom: 4px;
}

.tgp-formula-english {
	font-size: 12px;
	color: var(--tgp-secondary);
	margin-bottom: 8px;
}

.tgp-formula-desc {
	font-size: 14px;
	color: var(--tgp-secondary);
}

/* ========================================
   Module 3b: 产品卖点/技术 (Highlights/Technology)
======================================== */
.tgp-product-highlights .tgp-highlights-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 25px;
}

@media (min-width: 768px) {
	.tgp-product-highlights .tgp-highlights-grid {
		grid-template-columns: repeat(auto-fit, 300px);
		gap: 50px;
		justify-content: center;
	}
}

.tgp-highlight-item {
	background: var(--tgp-white);
	border-radius: var(--tgp-radius);
	overflow: hidden;
	transition: var(--tgp-transition);
}

.tgp-highlight-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tgp-highlight-image {
	aspect-ratio: 3/4;
	overflow: hidden;
}

.tgp-highlight-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tgp-highlight-content {
	padding: 24px;
}

.tgp-highlight-title {
	font-size: 18px;
	font-weight: 500;
	color: var(--tgp-primary);
	margin: 0 0 12px;
}

.tgp-highlight-text {
	display: block;
	font-size: 16px;
	font-weight: 500;
	color: var(--tgp-primary);
	margin-bottom: 8px;
}

.tgp-highlight-description {
	margin: 0;
	font-size: 14px;
	color: var(--tgp-secondary);
	line-height: 1.6;
}

.tgp-highlight-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 24px;
}

.tgp-stat-box {
	background: var(--tgp-bg);
	border-radius: var(--tgp-radius-sm);
	padding: 16px;
	text-align: center;
}

.tgp-stat-value {
	font-size: 24px;
	font-weight: 300;
	color: var(--tgp-primary);
	margin-bottom: 4px;
}

.tgp-stat-label {
	font-size: 12px;
	color: var(--tgp-secondary);
}

/* ========================================
   Module 3c: 数据对比 (Comparison)
======================================== */
.tgp-data-comparison .tgp-comparison-table {
	background: var(--tgp-bg);
	border-radius: var(--tgp-radius);
	overflow: hidden;
}

.tgp-comparison-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	border-bottom: 1px solid var(--tgp-border);
}

.tgp-comparison-row:last-child {
	border-bottom: none;
}

.tgp-comparison-header,
.tgp-comparison-cell {
	padding: 16px;
	font-size: 14px;
}

.tgp-comparison-header {
	background: var(--tgp-bg);
	font-weight: 500;
	color: var(--tgp-secondary);
}

.tgp-comparison-header:last-child {
	color: var(--tgp-primary);
}

.tgp-comparison-cell {
	background: var(--tgp-white);
	color: var(--tgp-secondary);
}

.tgp-comparison-cell:last-child {
	color: var(--tgp-primary);
}

.tgp-data-comparison .tgp-comparison-image {
	margin-top: 24px;
	border-radius: var(--tgp-radius);
	overflow: hidden;
}

.tgp-data-comparison .tgp-comparison-image img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: auto;
}

/* ========================================
   Module 4c: 规格选购 (Spec Selection)
======================================== */
.tgp-spec-selection {
	background: var(--tgp-bg);
}

.tgp-spec-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 25px;
}

@media (min-width: 768px) {
	.tgp-spec-grid {
		grid-template-columns: repeat(auto-fit, 300px);
		gap: 50px;
		justify-content: center;
	}
}

.tgp-spec-card {
	background: var(--tgp-white);
	border: 2px solid var(--tgp-border);
	border-radius: var(--tgp-radius);
	padding: 24px;
	position: relative;
	transition: var(--tgp-transition);
}

.tgp-spec-card:hover {
	border-color: var(--tgp-primary);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tgp-spec-badge {
	position: absolute;
	top: -12px;
	right: 16px;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 12px;
	font-weight: 500;
}

.tgp-spec-name {
	font-size: 18px;
	font-weight: 500;
	color: var(--tgp-primary);
	margin: 0 0 16px;
}

.tgp-spec-desc {
	font-size: 14px;
	color: var(--tgp-secondary);
	margin: 0 0 16px;
}

.tgp-spec-suggestion {
	font-size: 14px;
	color: var(--tgp-secondary);
	margin: 0 0 24px;
}

/* ========================================
   Module 3d: 使用步骤 (Usage Steps)
======================================== */
.tgp-usage-steps .tgp-steps-list {
    display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 25px;
}

@media (min-width: 768px) {
	.tgp-usage-steps .tgp-steps-list {
		grid-template-columns: repeat(auto-fit, 300px);
		gap: 50px;
		justify-content: center;
	}
}

.tgp-step-item {
	background: var(--tgp-white);
	border-radius: var(--tgp-radius);
	overflow: hidden;
	position: relative;
	transition: var(--tgp-transition);
}

.tgp-step-item.tgp-step-no-image {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
}

.tgp-step-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tgp-step-number {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	width: 40px;
	height: 40px;
	background: var(--tgp-primary);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	font-weight: 500;
	z-index: 10;
}

.tgp-step-image {
	aspect-ratio: 3/4;
	overflow: hidden;
	background: var(--tgp-bg);
}

.tgp-step-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tgp-step-content {
	padding: 24px;
	text-align: center;
}

.tgp-step-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 500;
	color: var(--tgp-primary);
}

.tgp-step-description {
	margin: 0;
	font-size: 14px;
	color: var(--tgp-secondary);
	line-height: 1.5;
}

.tgp-step-suggestion {
	margin: 12px 0 0;
	font-size: 12px;
	color: var(--tgp-accent);
}

.tgp-usage-tips {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 16px;
}

@media (min-width: 768px) {
	.tgp-usage-tips {
		grid-template-columns: repeat(auto-fit, 300px);
		gap: 50px;
		justify-content: center;
	}
}

.tgp-tip-box {
	border-radius: var(--tgp-radius-sm);
	padding: 16px;
}

.tgp-tip-box.yellow {
	background: #fefce8;
}
.tgp-tip-box.blue {
	background: #eff6ff;
}
.tgp-tip-box.green {
	background: #f0fdf4;
}

.tgp-tip-box p {
	margin: 0;
	font-size: 14px;
	color: var(--tgp-secondary);
}

/* ========================================
   Module 4: 热门色系 (Popular Colors)
======================================== */
.tgp-popular-colors .tgp-color-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: 40px;
}

.tgp-color-filter {
	padding: 8px 20px;
	border-radius: var(--tgp-radius-full);
	border: 1px solid var(--tgp-border);
	background: transparent;
	font-size: 14px;
	color: var(--tgp-secondary);
	cursor: pointer;
	transition: all 0.2s ease;
}

.tgp-color-filter:hover {
	border-color: var(--tgp-primary);
}

.tgp-color-filter.active {
	background: var(--tgp-primary);
	color: #fff;
	border-color: var(--tgp-primary);
}

.tgp-popular-colors .tgp-color-series-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 25px;
}

@media (min-width: 768px) {
	.tgp-popular-colors .tgp-color-series-grid {
		grid-template-columns: repeat(auto-fit, 300px);
		gap: 50px;
		justify-content: center;
	}
}

.tgp-color-card {
	background: var(--tgp-bg);
	border-radius: var(--tgp-radius);
	padding: 24px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.tgp-color-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.tgp-color-swatch {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	margin: 0 auto 16px;
	transition: transform 0.2s ease;
}

.tgp-color-swatch:hover {
	transform: scale(1.1);
}

.tgp-color-card-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--tgp-primary);
	margin-bottom: 8px;
}

.tgp-color-tags {
	display: flex;
	justify-content: center;
	gap: 4px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}

.tgp-color-tag {
	padding: 2px 8px;
	border-radius: var(--tgp-radius-full);
	font-size: 10px;
	font-weight: 500;
	margin-left: 8px;
}
.tgp-variant-tags .tgp-color-tag {
	font-size: 12px;
}

.tgp-color-tag.free {
	background: #dcfce7;
	color: #15803d;
}

.tgp-color-tag.cover {
	background: #dbeafe;
	color: #1d4ed8;
}

.tgp-color-tag.bleach {
	background: #ffedd5;
	color: #c2410c;
}

.tgp-color-desc {
	font-size: 12px;
	color: var(--tgp-secondary);
}

/* ========================================
   Module 5: 适合人群 (Target Audience)
======================================== */
.tgp-target-audience .tgp-audience-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 25px;
}

@media (min-width: 768px) {
	.tgp-target-audience .tgp-audience-grid {
		grid-template-columns: repeat(auto-fit, 300px);
		gap: 50px;
		justify-content: center;
	}
}

.tgp-audience-item {
	background: var(--tgp-bg);
	border-radius: var(--tgp-radius);
	overflow: hidden;
	transition: all 0.3s ease;
}

.tgp-audience-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.tgp-audience-image {
	aspect-ratio: 3/4;
	overflow: hidden;
}

.tgp-audience-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tgp-audience-content {
	padding: 24px;
}

.tgp-audience-title {
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 500;
	color: var(--tgp-primary);
}

.tgp-audience-quote {
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--tgp-secondary);
	font-style: italic;
	line-height: 1.5;
}

.tgp-audience-slogan {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--tgp-primary);
}

/* ========================================
   Module 6: 产品认证 (Certifications)
======================================== */
.tgp-certifications .tgp-certifications-grid {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 25px;
}

@media (min-width: 768px) {
	.tgp-certifications .tgp-certifications-grid {
		grid-template-columns: repeat(auto-fit, 300px);
		gap: 50px;
		justify-content: center;
	}
}



.tgp-certifications .tgp-certifications-grid .tgp-certification-item {
	flex: 0 1 calc(25% - 18px);
	min-width: 200px;
}

.tgp-certification-item {
	background: var(--tgp-white);
	border-radius: var(--tgp-radius);
	padding: 24px;
	text-align: center;
	transition: all 0.3s ease;
}

.tgp-certification-item:hover {
	transform: translateY(-2px);
}

.tgp-certification-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	margin: 0 auto 16px;
	overflow: hidden;
	background: var(--tgp-bg);
	display: flex;
	align-items: center;
	justify-content: center;
}

.tgp-certification-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tgp-certification-name {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--tgp-primary);
}

.tgp-certification-description {
	margin: 0;
	font-size: 12px;
	color: var(--tgp-secondary);
	line-height: 1.4;
}

/* ========================================
   Module 7: 常见问题 (FAQ)
======================================== */
.tgp-faq .tgp-faq-list {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tgp-faq-item {
	background: var(--tgp-bg);
	border-radius: var(--tgp-radius-sm);
	overflow: hidden;
	transition: all 0.2s ease;
}

.tgp-faq-question {
	padding: 20px 24px;
	font-size: 14px;
	font-weight: 500;
	color: var(--tgp-primary);
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background 0.2s;
}

.tgp-faq-question:hover {
	background: rgba(255, 255, 255, 0.5);
}

.tgp-faq-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.tgp-faq-item.active .tgp-faq-icon {
	transform: rotate(180deg);
}

.tgp-faq-answer {
	padding: 0 24px 20px;
	font-size: 14px;
	color: var(--tgp-secondary);
	line-height: 1.6;
	display: none;
}

.tgp-faq-item.active .tgp-faq-answer {
	display: block;
}

.tgp-faq-answer p {
	margin: 0 0 12px;
}

.tgp-faq-answer p:last-child {
	margin-bottom: 0;
}

.tgp-faq-answer strong {
	color: var(--tgp-primary);
}

/* ========================================
   响应式调整
======================================== */
@media (max-width: 768px) {
	.tgp-module {
		padding: 60px 0;
	}

	.tgp-module-header {
		margin-bottom: 40px;
	}

	.tgp-module-title {
		font-size: 20px;
	}

	/* .tgp-product-highlights .tgp-highlights-grid {
		grid-template-columns: 1fr;
	} */

	.tgp-formula-item,
	.tgp-highlight-item,
	.tgp-step-item,
	.tgp-color-card,
	.tgp-audience-item {
		flex-direction: column;
	}

	.tgp-formula-image,
	.tgp-audience-image {
		width: 100%;
		height: auto;
		aspect-ratio: 1;
	}

	.tgp-step-image {
		width: 100%;
		height: auto;
		aspect-ratio: 4/3;
	}

	.tgp-comparison-row {
		grid-template-columns: 1fr;
	}

	.tgp-comparison-row {
		display: none;
	}

	.tgp-comparison-row:first-child {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
	}
}

/* ========================================
   产品描述 Tabs (备用)
======================================== */
.tgp-tabs {
	margin: 40px 0;
}

.tgp-tabs-nav {
	display: flex;
	border-bottom: 1px solid var(--tgp-border);
	margin-bottom: 24px;
}

.tgp-tab-btn {
	padding: 12px 24px;
	background: none;
	border: none;
	font-size: 14px;
	cursor: pointer;
	color: var(--tgp-secondary);
	position: relative;
	transition: var(--tgp-transition);
}

.tgp-tab-btn:hover,
.tgp-tab-btn.active {
	color: var(--tgp-primary);
}

.tgp-tab-btn.active::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--tgp-primary);
}

.tgp-tab-content {
	display: none;
}

.tgp-tab-content.active {
	display: block;
}

/* ========================================
   无产品提示
   ======================================== */
.tgp-no-products {
	text-align: center;
	padding: 60px 20px;
	color: var(--tgp-secondary);
	font-size: 16px;
}
