/* =====================================================
   来电卫士产品矩阵门户 · 视觉优化样式 v2.0
   科技化 | 创新化 | 美观大气 | 移动优先
   ===================================================== */

/* ====== Hero 区域增强 ====== */
.portal-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--space-10)) 0 var(--space-10);
  background:
    radial-gradient(ellipse at 20% 20%, rgba(37, 99, 235, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 60%),
    linear-gradient(135deg, #020617 0%, #0f172a 40%, #1e293b 100%);
  overflow: hidden;
}

.portal-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  animation: gridMove 20s linear infinite;
}

.portal-hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  top: 10%;
  right: -10%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  animation: floatGlow 8s ease-in-out infinite;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  pointer-events: none;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  top: 20%;
  left: -5%;
  background: rgba(37, 99, 235, 0.35);
  animation: orbFloat1 10s ease-in-out infinite;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  bottom: 15%;
  right: 15%;
  background: rgba(6, 182, 212, 0.3);
  animation: orbFloat2 12s ease-in-out infinite;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  background: rgba(99, 102, 241, 0.25);
  animation: orbFloat3 14s ease-in-out infinite;
}

@keyframes gridMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(80px); }
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 30px) scale(1.1); }
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -40px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, 30px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-45%, -55%); }
}

.portal-hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--space-5);
}

.portal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  margin-bottom: var(--space-5);
}

.portal-hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22D3EE;
  box-shadow: 0 0 12px #22D3EE;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.portal-hero h1 {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  color: white;
}

.portal-hero .hero-gradient-text {
  background: linear-gradient(135deg, #60A5FA 0%, #22D3EE 40%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portal-hero-subtitle {
  font-size: clamp(var(--text-base), 1.8vw, var(--text-xl));
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 auto var(--space-6);
  max-width: 720px;
}

.portal-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.portal-hero-actions .cg-btn-primary {
  background: linear-gradient(135deg, #2563EB, #06B6D4);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4), 0 0 40px rgba(6, 182, 212, 0.2);
}

.portal-hero-actions .cg-btn-primary:hover {
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5), 0 0 60px rgba(6, 182, 212, 0.3);
}

.portal-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.portal-hero-stat {
  text-align: center;
  padding: var(--space-3) var(--space-5);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  min-width: 120px;
  backdrop-filter: blur(8px);
}

.portal-hero-stat-value {
  font-size: var(--text-4xl);
  font-weight: 800;
  background: linear-gradient(135deg, #60A5FA, #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portal-hero-stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-1);
}

/* ====== 通用区域 ====== */
.portal-section {
  padding: var(--space-24) 0;
}

.portal-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}

.portal-section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  background: var(--cg-primary-50);
  color: var(--cg-primary-700);
  border: 1px solid rgba(37, 99, 235, 0.15);
  margin-bottom: var(--space-4);
}

.portal-section-header h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.portal-section-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ====== 产品矩阵卡片 ====== */
.portal-products-section {
  background: var(--bg-body);
}

.portal-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.portal-product-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.portal-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--card-color-1), var(--card-color-2));
  opacity: 0.8;
  transition: height 0.35s ease;
}

.portal-product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 20px 40px rgba(15, 23, 42, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

.portal-product-card:hover::before {
  height: 6px;
}

.portal-product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.portal-product-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  font-weight: 700;
  background: linear-gradient(135deg, var(--card-color-1), var(--card-color-2));
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portal-product-tag {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--cg-slate-100);
  color: var(--cg-slate-600);
}

.portal-product-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.portal-product-subtitle {
  font-size: var(--text-sm);
  color: var(--cg-primary);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.portal-product-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-5);
}

.portal-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-color);
}

.portal-product-price {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--cg-primary);
}

.portal-product-price.free { color: var(--cg-success); }
.portal-product-price.paid { color: var(--cg-primary); }

.portal-product-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #ffffff;
  color: #0f172a;
  border: 2px solid var(--card-color-1, #2563EB);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  transition: all var(--transition-base);
}

.portal-product-btn::after {
  content: ' \2192';
  font-weight: 800;
  margin-left: 2px;
}

.portal-product-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--card-color-1, #2563EB), var(--card-color-2, #06B6D4));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  filter: none;
}

/* 产品卡片颜色主题 */
.portal-product-card[data-product="callguard"] { --card-color-1: #2563EB; --card-color-2: #06B6D4; }
.portal-product-card[data-product="timeguard"] { --card-color-1: #7C3AED; --card-color-2: #EC4899; }
.portal-product-card[data-product="accguard"] { --card-color-1: #059669; --card-color-2: #10B981; }
.portal-product-card[data-product="kezong"] { --card-color-1: #EA580C; --card-color-2: #F59E0B; }
.portal-product-card[data-product="diskchannel"] { --card-color-1: #0891B2; --card-color-2: #22D3EE; }
.portal-product-card[data-product="inkextract"] { --card-color-1: #4338CA; --card-color-2: #6366F1; }
.portal-product-card[data-product="smartclean"] { --card-color-1: #2563EB; --card-color-2: #06B6D4; }
.portal-product-card[data-product="startpath"] { --card-color-1: #7C3AED; --card-color-2: #6366F1; }
.portal-product-card[data-product="repair"] { --card-color-1: #EA580C; --card-color-2: #EF4444; }
.portal-product-card[data-product="tifen"] { --card-color-1: #2563EB; --card-color-2: #06B6D4; }

/* 动图提分大师卡片：动态二次函数图标 */
.portal-product-badge.tifen-badge {
  padding: 0;
  overflow: hidden;
  background: #0b1220;
  border-radius: var(--radius-lg);
}
.portal-product-badge.tifen-badge canvas {
  display: block;
  width: 44px;
  height: 44px;
}

/* ====== 生态能力区域 ====== */
.portal-ecosystem-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.portal-ecosystem-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.12) 0%, transparent 40%);
}

.portal-ecosystem-section .portal-section-header h2,
.portal-ecosystem-section .portal-section-header p {
  color: white;
}

.portal-ecosystem-section .portal-section-header p {
  opacity: 0.7;
}

.portal-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  position: relative;
  z-index: 1;
}

.portal-eco-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: all 0.35s ease;
  backdrop-filter: blur(8px);
}

.portal-eco-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.portal-eco-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-3xl);
  margin: 0 auto var(--space-5);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(6, 182, 212, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.portal-eco-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.portal-eco-card p {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
}

/* ====== 功能一览表 ====== */
.portal-table-section {
  background: var(--bg-surface);
}

.portal-table-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
}

.portal-table thead {
  background: linear-gradient(135deg, var(--cg-slate-900), #1e3a8a);
}

.portal-table th {
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-size: var(--text-sm);
  font-weight: 600;
  color: white;
  letter-spacing: 0.02em;
}

.portal-table td {
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.portal-table tbody tr {
  transition: background var(--transition-base);
}

.portal-table tbody tr:nth-child(even) {
  background: rgba(241, 245, 249, 0.5);
}

.portal-table tbody tr:hover {
  background: var(--cg-primary-50);
}

.portal-table tbody tr:last-child td {
  border-bottom: none;
}

.portal-table .product-cell {
  font-weight: 700;
  color: var(--text-primary);
}

.portal-table .product-cell .product-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  margin-left: var(--space-2);
  background: linear-gradient(135deg, #F59E0B, #EF4444);
  color: white;
}

.portal-table .phrase-cell {
  color: var(--cg-slate-600);
  font-weight: 500;
}

.portal-table .price-cell {
  font-weight: 700;
  color: var(--cg-primary);
  white-space: nowrap;
}

.portal-table .price-cell.free { color: var(--cg-success); }

.portal-table .action-cell {
  white-space: nowrap;
}

.portal-table .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  background: transparent;
  color: var(--cg-primary);
  border: 1px solid var(--cg-primary);
  transition: all var(--transition-base);
}

.portal-table .action-btn:hover {
  background: var(--cg-primary);
  color: white;
  transform: translateY(-1px);
}

/* ====== 使用流程 ====== */
.portal-steps-section {
  background: var(--bg-body);
}

.portal-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.portal-steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--cg-primary), var(--cg-accent));
  opacity: 0.3;
  z-index: 0;
}

.portal-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.portal-step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 800;
  margin: 0 auto var(--space-5);
  background: linear-gradient(135deg, var(--cg-primary), var(--cg-accent));
  color: white;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(37, 99, 235, 0.3);
}

.portal-step h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text-primary);
}

.portal-step p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ====== 用户评价 ====== */
.portal-testimonials-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-body) 100%);
}

.portal-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.portal-testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.portal-testimonial-stars {
  color: #F59E0B;
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

.portal-testimonial-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.portal-testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.portal-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cg-primary), var(--cg-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: var(--text-sm);
}

.portal-testimonial-info {
  flex: 1;
}

.portal-testimonial-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.portal-testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ====== CTA ====== */
.portal-cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.portal-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 50%, rgba(37, 99, 235, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
}

.portal-cta-content {
  position: relative;
  z-index: 1;
}

.portal-cta-section h2 {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.portal-cta-section p {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.portal-cta-section .cg-btn-primary {
  background: white;
  color: var(--cg-primary-700);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
}

.portal-cta-section .cg-btn-primary:hover {
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

/* ====== FAQ ====== */
.portal-faq-section {
  background: var(--bg-body);
}

.portal-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.portal-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.portal-faq-question {
  width: 100%;
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
}

.portal-faq-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--cg-primary);
  flex-shrink: 0;
}

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

.portal-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.portal-faq-item.active .portal-faq-answer {
  max-height: 300px;
  padding: 0 var(--space-6) var(--space-5);
}

.portal-faq-answer p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ====== 底部产品家族画廊 ====== */
.portal-gallery-section {
  background:
    radial-gradient(ellipse at 20% 30%, rgba(37, 99, 235, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(6, 182, 212, 0.14) 0%, transparent 45%),
    linear-gradient(135deg, #020617 0%, #0f172a 50%, #1e3a8a 100%);
  color: white;
  position: relative;
  overflow: hidden;
  padding: var(--space-10) 0 var(--space-10);
}

.portal-gallery-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.portal-gallery-section .portal-section-header {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-6);
}

.portal-gallery-section .portal-section-header h2 {
  color: white;
  margin-bottom: var(--space-2);
}

.portal-gallery-section .portal-section-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-base);
  line-height: 1.6;
}

.portal-gallery-section .cg-hero-gallery {
  position: relative;
  z-index: 1;
  margin-top: var(--space-6);
}

.portal-gallery-section .cg-hero-gallery-card {
  flex: 0 0 200px;
  height: 120px;
  padding: var(--space-4);
}

.portal-gallery-section .cg-hero-gallery-card .gallery-icon {
  width: 38px;
  height: 38px;
  margin-bottom: var(--space-2);
}

.portal-gallery-section .cg-hero-gallery-card .gallery-name {
  font-size: var(--text-base);
}

.portal-gallery-section .cg-hero-gallery-card .gallery-tagline {
  font-size: 11px;
}

/* ====== 动画类 ====== */
.portal-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.portal-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.portal-animate-delay-1 { transition-delay: 0.1s; }
.portal-animate-delay-2 { transition-delay: 0.2s; }
.portal-animate-delay-3 { transition-delay: 0.3s; }
.portal-animate-delay-4 { transition-delay: 0.4s; }

/* ====== 响应式 ====== */
@media (max-width: 1024px) {
  .portal-product-grid,
  .portal-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  
  .portal-ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
  
  .portal-steps-grid::before { display: none; }
}

@media (max-width: 768px) {
  .portal-section { padding: var(--space-16) 0; }
  .portal-hero { min-height: auto; padding: calc(var(--nav-height) + var(--space-12)) 0 var(--space-16); }
  .portal-hero-stats { gap: var(--space-4); }
  .portal-hero-stat { min-width: 100px; padding: var(--space-3) var(--space-4); }
  .portal-hero-stat-value { font-size: var(--text-2xl); }
  
  .portal-product-grid,
  .portal-ecosystem-grid,
  .portal-testimonials-grid,
  .portal-steps-grid { grid-template-columns: 1fr; }
  
  .portal-table th,
  .portal-table td { padding: var(--space-3) var(--space-4); font-size: var(--text-xs); }
  .portal-table .phrase-cell { display: none; }
  .portal-table .product-cell .product-tag { display: none; }
  
  .portal-faq-question { padding: var(--space-4) var(--space-5); font-size: var(--text-sm); }
}

@media (max-width: 480px) {
  .portal-hero-actions { flex-direction: column; width: 100%; }
  .portal-hero-actions .cg-btn { width: 100%; }
  .portal-product-card { padding: var(--space-5); }
  .portal-product-footer { flex-direction: column; gap: var(--space-3); align-items: stretch; }
  .portal-product-btn { width: 100%; }
}

/* =====================================================
   移动端 & 平板响应式增强 v2.1
   目标：手机端 / 平板端布局完整、无溢出、无截断
   ===================================================== */

/* —— 平板 769–1024px：Hero 标题自适应缩尺 —— */
@media (max-width: 1024px) {
  .portal-hero h1 { font-size: clamp(var(--text-3xl), 4.5vw, var(--text-5xl)); }
  .portal-hero-subtitle { font-size: var(--text-base); }
}

/* —— 手机 768px 及以下 —— */
@media (max-width: 768px) {
  /* 功能一览表：隐藏短语列后仍有4列，提供横向滚动兜底，杜绝挤压换行 */
  .portal-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .portal-table { min-width: 560px; }
  .portal-table .action-cell { white-space: nowrap; }

  /* 生态图标 / 步骤圆 缩尺（72px/80px → 60px/64px） */
  .portal-eco-icon { width: 60px; height: 60px; font-size: var(--text-2xl); margin-bottom: var(--space-4); }
  .portal-step-number { width: 64px; height: 64px; font-size: var(--text-xl); margin-bottom: var(--space-4); }

  /* 产品卡标题缩尺 */
  .portal-product-card h3 { font-size: var(--text-lg); }

  /* 区块标题收紧 */
  .portal-section-header { margin-bottom: var(--space-8); }
  .portal-section-header p { font-size: var(--text-base); }

  /* 生态卡 padding 微调 */
  .portal-eco-card { padding: var(--space-6) var(--space-5); }
}

/* —— 小屏手机 480px 及以下 —— */
@media (max-width: 480px) {
  /* Hero 紧凑化：确保统计进入首屏 */
  .portal-hero { padding: calc(var(--nav-height) + var(--space-6)) 0 var(--space-6); }
  .portal-hero-content { padding: 0 var(--space-4); }
  .portal-hero h1 { font-size: clamp(var(--text-3xl), 8vw, var(--text-4xl)); }
  .portal-hero-badge { font-size: var(--text-xs); padding: var(--space-2) var(--space-3); line-height: 1.4; }
  .portal-hero-subtitle { font-size: var(--text-sm); line-height: 1.6; margin-bottom: var(--space-4); }
  .portal-hero-actions { gap: var(--space-3); margin-bottom: var(--space-5); }
  .portal-hero-actions .cg-btn { padding: var(--space-3) var(--space-4); font-size: var(--text-sm); }

  .portal-hero-stats { gap: var(--space-2); }
  .portal-hero-stat { min-width: 0; flex: 1 1 0; padding: var(--space-3) var(--space-2); }
  .portal-hero-stat-value { font-size: var(--text-xl); }
  .portal-hero-stat-label { font-size: var(--text-xs); }

  /* 产品矩阵卡：badge / 描述缩尺 */
  .portal-product-badge { width: 44px; height: 44px; font-size: var(--text-base); }
  .portal-product-badge.tifen-badge canvas { width: 44px; height: 44px; }
  .portal-product-desc { font-size: var(--text-xs); }

  /* 生态卡：图标缩至 52px */
  .portal-eco-icon { width: 52px; height: 52px; font-size: var(--text-xl); }
  .portal-eco-card h3 { font-size: var(--text-base); }
  .portal-eco-card p { font-size: var(--text-xs); }

  /* 步骤：圆缩至 56px */
  .portal-step-number { width: 56px; height: 56px; font-size: var(--text-lg); }
  .portal-step h3 { font-size: var(--text-base); }

  /* 表格：更紧凑 */
  .portal-table th,
  .portal-table td { padding: var(--space-3); font-size: 11px; }
  .portal-table .action-btn { padding: var(--space-2) var(--space-3); font-size: 11px; }

  /* 评价卡 */
  .portal-testimonial-card { padding: var(--space-5); }
  .portal-testimonial-text { font-size: var(--text-sm); }

  /* FAQ：展开高度兜底防截断 */
  .portal-faq-item.active .portal-faq-answer { max-height: 500px; }

  /* CTA：按钮全宽居中 */
  .portal-cta-section .cg-btn { width: 100%; max-width: 360px; }

  /* 底部画廊卡缩尺（覆盖 portal.css 200px 固定值） */
  .portal-gallery-section .cg-hero-gallery-card { flex: 0 0 132px; height: 104px; padding: var(--space-3); }
  .portal-gallery-section .cg-hero-gallery-card .gallery-icon { width: 30px; height: 30px; margin-bottom: var(--space-1); }
  .portal-gallery-section .cg-hero-gallery-card .gallery-name { font-size: var(--text-sm); }

  /* 区块垂直间距收紧 */
  .portal-section { padding: var(--space-12) 0; }
}

/* —— 超小屏 360px 及以下 —— */
@media (max-width: 360px) {
  .portal-hero-stat-label { font-size: 11px; }
  .portal-table { min-width: 520px; }
  .portal-table .product-cell .product-tag { display: none; }
  .portal-gallery-section .cg-hero-gallery-card { flex: 0 0 120px; }
}

/* 云间命理 / 云影制作 产品卡片配色（XT-PORTAL-BAZIFILM 20260912） */
.portal-product-card[data-product="bazi"] { --card-color-1: #6D28D9; --card-color-2: #A855F7; }
.portal-product-card[data-product="film"] { --card-color-1: #BE123C; --card-color-2: #F43F5E; }

/* 万物皆可造 / 万物皆可拆 产品卡片配色（XT-PORTAL-CREATEEXPLODE 20260917） */
.portal-product-card[data-product="create"] { --card-color-1: #0EA5E9; --card-color-2: #6366F1; }
.portal-product-card[data-product="explode"] { --card-color-1: #14B8A6; --card-color-2: #0EA5E9; }
.portal-product-card[data-product="petdream"] { --card-color-1: #EC4899; --card-color-2: #FBBF24; }
.portal-product-card[data-product="yunying"] { --card-color-1: #8B5CF6; --card-color-2: #06B6D4; }
.cg-hero-gallery-card.cg-gallery-create { background: linear-gradient(135deg, #0EA5E9, #6366F1); }
.cg-hero-gallery-card.cg-gallery-explode { background: linear-gradient(135deg, #14B8A6, #0EA5E9); }

/* 无限画布 产品卡片配色（XT-PORTAL-CANVAS 20260928） */
.portal-product-card[data-product="canvas"] { --card-color-1: #4F46E5; --card-color-2: #22D3EE; }

/* AI 数字人 产品卡配色（XT-PORTAL-AVATAR 20261009） */
.cg-hero-gallery-card.cg-gallery-avatar { background: linear-gradient(135deg, #6366F1, #06B6D4); }

/* 时光之城 产品卡配色（XT-PORTAL-CITY 20261010） */
.portal-product-card[data-product="city"] { --card-color-1: #F59E0B; --card-color-2: #3B82F6; }

/* 星语口播 产品卡配色（XT-PORTAL-STARCAST 20261010） */
.portal-product-card[data-product="starcast"] { --card-color-1: #06B6D4; --card-color-2: #A78BFA; }

/* AI 智能 3D 数字人高颜值造型产线 产品卡片配色（XT-STARLOOK-ONBOARD 20261011） */
.portal-product-card[data-product="starlook"] { --card-color-1: #D946EF; --card-color-2: #8B5CF6; }

/* 造型产线卡 · 四链接行（免费试用 / 付费下载 / 造型库 / 说明） */
.portal-product-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--border-color);
}
.portal-product-links a {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--card-color-1, #2563EB);
  text-decoration: none;
  transition: opacity var(--transition-base);
}
.portal-product-links a:hover { opacity: .65; text-decoration: underline; }
.portal-product-links a::before { content: '\203A '; opacity: .55; }
