/* ==================== 电子魅魔AI - 首页样式 ==================== */

/* ==================== Hero区 ==================== */
.hero-section { position: relative; background: linear-gradient(135deg, #1a1a2e 0%, #2d1832 50%, #1a1a2e 100%); padding: 120px 0 90px; overflow: hidden; margin-top: 0; }
.hero-section::before { content: ''; position: absolute; top: -40%; left: -20%; width: 60%; height: 80%; background: radial-gradient(circle, rgba(253,124,156,0.15) 0%, transparent 70%); pointer-events: none; }
.hero-section::after { content: ''; position: absolute; bottom: -30%; right: -10%; width: 50%; height: 60%; background: radial-gradient(circle, rgba(224,96,128,0.12) 0%, transparent 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 48px; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 36px; font-weight: 800; color: #fff; line-height: 1.35; margin-bottom: 18px; }
.hero-text h1 span { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 28px; max-width: 480px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-btns .btn-primary { padding: 14px 36px; font-size: 16px; }
.hero-btns .btn-secondary { padding: 14px 36px; font-size: 16px; background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.hero-btns .btn-secondary:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.hero-visual { flex: 1; display: flex; justify-content: center; }
.hero-mockup { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 20px; padding: 24px; width: 100%; max-width: 380px; backdrop-filter: blur(10px); }
.hero-chat { display: flex; flex-direction: column; gap: 14px; }
.hero-chat-msg { display: flex; gap: 10px; }
.hero-chat-msg.ai { align-items: flex-start; }
.hero-chat-msg.user { align-items: flex-start; justify-content: flex-end; }
.hero-chat-msg .msg-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--primary-gradient); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; }
.hero-chat-msg.user .msg-avatar { background: rgba(255,255,255,0.2); }
.hero-chat-msg .msg-bubble { padding: 10px 16px; border-radius: 16px; font-size: 13px; line-height: 1.5; max-width: 240px; }
.hero-chat-msg.ai .msg-bubble { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.9); border-bottom-left-radius: 4px; }
.hero-chat-msg.user .msg-bubble { background: var(--primary-gradient); color: #fff; border-bottom-right-radius: 4px; }
.typing-cursor { display: inline-block; width: 2px; height: 14px; background: var(--primary); vertical-align: middle; margin-left: 2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ==================== 三步上手 ==================== */
.flow-steps { display: flex; gap: 0; max-width: var(--max-width); margin: 0 auto 32px; padding: 0 20px; position: relative; }
.flow-step { flex: 1; text-align: center; padding: 28px 20px; position: relative; }
.flow-step + .flow-step::before { content: ''; position: absolute; top: 58px; left: -20px; width: 40px; height: 2px; background: linear-gradient(90deg, var(--border), var(--primary)); }
.step-number { width: 50px; height: 50px; border-radius: 50%; background: var(--primary-gradient); color: #fff; font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 4px 16px rgba(253,124,156,0.3); }
.flow-step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.flow-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.flow-cta { text-align: center; margin-top: 16px; }

/* ==================== 核心特色 ==================== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card { background: rgba(255,255,255,0.75); backdrop-filter: blur(10px); border: 1px solid rgba(253,124,156,0.1); border-radius: 16px; padding: 28px 22px; text-align: center; transition: all 0.3s; position: relative; }
.feature-card::before { content: ''; position: absolute; inset: -1px; border-radius: 16px; background: var(--primary-gradient); opacity: 0; z-index: -1; transition: opacity 0.3s; }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 26px; color: var(--primary); }
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ==================== 角色展示区 ==================== */
.characters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.char-card { background: var(--bg-white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s; position: relative; }
.char-card::before { content: ''; position: absolute; inset: -1px; border-radius: 16px; background: var(--primary-gradient); opacity: 0; z-index: -1; transition: opacity 0.3s; }
.char-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.char-card:hover::before { opacity: 1; }
.char-img { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.char-img.pink { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }
.char-img.purple { background: linear-gradient(135deg, #ede7f6, #d1c4e9); }
.char-img.blue { background: linear-gradient(135deg, #e3f2fd, #bbdefb); }
.char-img.green { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); }
.char-img.orange { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.char-info { padding: 18px; }
.char-info h4 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.char-creator { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.char-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.char-tags span { padding: 3px 10px; background: var(--primary-light); color: var(--primary); border-radius: 12px; font-size: 12px; }
.char-desc { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.char-chat-btn { display: inline-block; padding: 8px 20px; background: var(--primary-gradient); color: #fff; border-radius: 18px; font-size: 13px; font-weight: 600; transition: all 0.3s; }
.char-chat-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(253,124,156,0.3); color: #fff; }

/* ==================== 场景展示 ==================== */
.scene-showcase { display: flex; gap: 40px; align-items: center; }
.scene-preview { flex: 1; background: #1a1a2e; border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.scene-msg { display: flex; gap: 10px; font-size: 13px; }
.scene-msg .s-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary-gradient); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.scene-msg .s-bubble { padding: 8px 14px; border-radius: 12px; line-height: 1.5; }
.scene-msg.user .s-bubble { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.scene-msg.ai .s-bubble { background: var(--primary-gradient); color: #fff; }
.scene-msg.system { justify-content: center; }
.scene-msg.system .s-bubble { background: rgba(253,124,156,0.2); color: var(--primary); font-size: 12px; border: 1px dashed rgba(253,124,156,0.3); }
.scene-info { flex: 1; }
.scene-info h2 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.scene-info p { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 18px; }
.scene-features { display: flex; flex-direction: column; gap: 10px; }
.sf-item { font-size: 15px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.sf-item .fa { color: var(--primary); }

/* ==================== 用户体验区（深色终端风格） ==================== */
.exp-section { background: #1a1a2e; color: #fff; position: relative; overflow: hidden; }
.exp-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(253,124,156,0.08) 0%, transparent 50%); pointer-events: none; }
.exp-section .section-header h2 { color: #fff; }
.exp-section .section-header p { color: rgba(255,255,255,0.6); }
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; z-index: 1; }
.exp-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 28px 22px; transition: all 0.3s; backdrop-filter: blur(10px); }
.exp-card:hover { background: rgba(255,255,255,0.1); border-color: var(--primary); transform: translateY(-4px); }
.exp-card .exp-icon { font-size: 32px; margin-bottom: 14px; }
.exp-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: #fff; }
.exp-card p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; }
.code-block { background: rgba(0,0,0,0.3); border-radius: 10px; padding: 16px; font-family: 'Courier New', monospace; font-size: 12px; color: #a0ffa0; line-height: 1.7; margin-top: 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.code-block .pink { color: var(--primary); }
.code-block .cyan { color: #4fc3f7; }

/* ==================== 用户评价 ==================== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: var(--bg-white); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s; position: relative; }
.review-card::before { content: ''; position: absolute; inset: -1px; border-radius: 16px; background: var(--primary-gradient); opacity: 0; z-index: -1; transition: opacity 0.3s; }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.review-card:hover::before { opacity: 1; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; font-size: 18px; flex-shrink: 0; }
.review-avatar.av1 { background: linear-gradient(135deg, #fd7c9c, #e06080); }
.review-avatar.av2 { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.review-avatar.av3 { background: linear-gradient(135deg, #4fc3f7, #0288d1); }
.review-avatar.av4 { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.review-avatar.av5 { background: linear-gradient(135deg, #34d399, #059669); }
.review-avatar.av6 { background: linear-gradient(135deg, #fb923c, #ea580c); }
.review-user h4 { font-size: 15px; font-weight: 600; }
.review-time { font-size: 12px; color: var(--text-muted); }
.star-rating { color: var(--star); font-size: 13px; margin-bottom: 10px; }
.review-body { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.review-char { font-size: 12px; color: var(--primary); margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }

/* ==================== 平台数据 ==================== */
.stats-section { background: var(--primary-gradient); position: relative; overflow: hidden; }
.stats-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 40%); pointer-events: none; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; z-index: 1; }
.stat-item { text-align: center; color: #fff; }
.stat-num { font-size: 40px; font-weight: 800; margin-bottom: 8px; }
.stat-label { font-size: 15px; opacity: 0.85; }
.trust-badges { display: flex; justify-content: center; gap: 28px; margin-top: 32px; position: relative; z-index: 1; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,0.9); font-size: 14px; padding: 8px 18px; background: rgba(255,255,255,0.15); border-radius: 20px; }
.badge .fa { color: #fff; }

/* ==================== News/资讯板块 ==================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--bg-white); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s; position: relative; }
.news-card::before { content: ''; position: absolute; inset: -1px; border-radius: 16px; background: var(--primary-gradient); opacity: 0; z-index: -1; transition: opacity 0.3s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.news-card:hover::before { opacity: 1; }
.news-link { text-decoration: none; color: inherit; display: block; }
.news-img-wrap { width: 100%; height: 180px; overflow: hidden; background: var(--bg-light); }
.news-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-img { transform: scale(1.06); }
.news-content { padding: 18px; }
.news-content h3 { font-size: 16px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); margin-bottom: 8px; }
.news-content p { font-size: 14px; color: var(--text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; }
.news-date { font-size: 13px; color: var(--primary); }

/* ==================== 响应式 ==================== */
@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .characters-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-text h1 { font-size: 26px; }
  .hero-sub { font-size: 15px; margin: 0 auto 24px; }
  .hero-btns { justify-content: center; }
  .hero-visual { display: none; }
  .flow-steps { flex-direction: column; gap: 20px; }
  .flow-step + .flow-step::before { display: none; }
  .scene-showcase { flex-direction: column; }
  .features-grid { grid-template-columns: 1fr; }
  .characters-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .trust-badges { gap: 12px; }
}
@media (max-width: 480px) {
  .hero-text h1 { font-size: 22px; }
  .hero-section { padding: 100px 0 60px; }
  .stat-num { font-size: 32px; }
}
