/* ==================== 腐竹FM - 首页样式 ==================== */

/* ==================== Hero ==================== */
.hero-section { background: linear-gradient(160deg, #FDF5EF 0%, #F8EDE3 40%, #FFF0E5 100%); padding: 70px 0 80px; position: relative; overflow: hidden; }
.hero-section::before { content: ''; position: absolute; top: -80px; right: -120px; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(201,149,107,0.08) 0%, transparent 70%); pointer-events: none; }
.hero-section::after { content: ''; position: absolute; bottom: -60px; left: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(86,67,68,0.04) 0%, transparent 70%); pointer-events: none; }
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 48px; position: relative; z-index: 1; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 38px; font-weight: 800; line-height: 1.25; color: var(--text); 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: var(--text-light); line-height: 1.7; margin-bottom: 28px; max-width: 540px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { flex: 1; display: flex; justify-content: center; }
.hero-mockup { background: #fff; border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-lg); max-width: 420px; width: 100%; }
.hero-chat { display: flex; flex-direction: column; gap: 12px; }
.hero-chat-msg { display: flex; gap: 10px; max-width: 85%; }
.hero-chat-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.hero-chat-msg .msg-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--primary); flex-shrink: 0; }
.hero-chat-msg.user .msg-avatar { background: var(--accent-light); color: var(--accent); }
.hero-chat-msg .msg-bubble { background: var(--bg-light); padding: 10px 14px; border-radius: 12px 12px 12px 4px; font-size: 14px; line-height: 1.6; color: var(--text); }
.hero-chat-msg.user .msg-bubble { background: var(--primary-gradient); color: #fff; border-radius: 12px 12px 4px 12px; }
.typing-cursor { display: inline-block; width: 2px; height: 16px; background: var(--primary); vertical-align: middle; animation: blink 1s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ==================== 三步流程 ==================== */
.flow-steps { display: flex; gap: 24px; margin-bottom: 28px; }
.flow-step { flex: 1; text-align: center; padding: 28px 20px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: all 0.3s; position: relative; }
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.flow-step::after { content: ''; position: absolute; top: 36px; right: -18px; width: 28px; height: 2px; background: var(--border); }
.flow-step:last-child::after { display: none; }
.step-number { width: 44px; height: 44px; background: var(--primary-gradient); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; margin: 0 auto 14px; }
.flow-step h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.flow-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.flow-cta { text-align: center; margin-top: 8px; }

/* ==================== 功能特色 ==================== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { background: #fff; border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); transition: all 0.3s; border: 1px solid transparent; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border); }
.feature-icon { font-size: 40px; margin-bottom: 14px; display: block; }
.feature-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.feature-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ==================== 内容展示 ==================== */
.scene-showcase { display: flex; gap: 32px; align-items: stretch; }
.scene-preview { flex: 1; display: flex; flex-direction: column; gap: 10px; background: #2d2d2d; border-radius: var(--radius-lg); padding: 20px; }
.scene-msg { display: flex; gap: 10px; max-width: 80%; }
.scene-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.scene-msg .s-avatar { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; flex-shrink: 0; }
.scene-msg .s-bubble { background: rgba(255,255,255,0.1); color: #ddd; padding: 8px 12px; border-radius: 10px 10px 10px 3px; font-size: 13px; line-height: 1.5; }
.scene-msg.user .s-bubble { background: var(--primary-gradient); color: #fff; border-radius: 10px 10px 3px 10px; }
.scene-msg.system .s-bubble { background: var(--accent-light); color: var(--accent); text-align: center; border-radius: 10px; font-size: 12px; }
.scene-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.scene-info h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.scene-info p { font-size: 15px; color: var(--text-light); line-height: 1.7; margin-bottom: 18px; }
.scene-features { display: flex; flex-direction: column; gap: 10px; }
.sf-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.sf-item i { color: var(--primary); }

/* ==================== 角色卡片 ==================== */
.characters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.char-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s; }
.char-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.char-img { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.char-img.purple { background: linear-gradient(135deg, #f3e8ff, #e9d5ff); }
.char-img.blue { background: linear-gradient(135deg, #e0f2fe, #bae6fd); }
.char-img.pink { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }
.char-img.green { background: linear-gradient(135deg, #ecfdf5, #a7f3d0); }
.char-img.orange { background: linear-gradient(135deg, #fff7ed, #fed7aa); }
.char-info { padding: 16px; }
.char-info h4 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.char-creator { font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.char-tags { display: flex; gap: 6px; margin-bottom: 8px; }
.char-tags span { padding: 2px 10px; background: var(--bg-light); color: var(--primary); border-radius: 12px; font-size: 11px; }
.char-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.char-chat-btn { display: block; text-align: center; padding: 8px; background: var(--primary-light); color: var(--primary); border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; transition: all 0.2s; }
.char-chat-btn:hover { background: var(--primary); color: #fff; }

/* ==================== 技术展示 ==================== */
.exp-section { background: var(--bg-light); }
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exp-card { padding: 28px; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.exp-icon { font-size: 32px; margin-bottom: 12px; }
.exp-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.exp-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 14px; }
.code-block { background: #1e1e1e; color: #d4d4d4; padding: 14px 18px; border-radius: var(--radius); font-family: 'Consolas', 'Monaco', 'Courier New', monospace; font-size: 12px; line-height: 1.8; }
.code-block .cyan { color: #4ec9b0; }
.code-block .pink { color: #c586c0; }

/* ==================== 用户评价 ==================== */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #fff; flex-shrink: 0; }
.review-avatar.av1 { background: linear-gradient(135deg, #f472b6, #c084fc); }
.review-avatar.av2 { background: linear-gradient(135deg, #60a5fa, #34d399); }
.review-avatar.av3 { background: linear-gradient(135deg, #fbbf24, #f97316); }
.review-user h4 { font-size: 15px; font-weight: 600; }
.review-time { font-size: 12px; color: var(--text-muted); }
.star-rating { margin-bottom: 8px; color: var(--star); font-size: 14px; }
.review-body { font-size: 14px; color: var(--text-light); line-height: 1.7; margin-bottom: 8px; }
.review-char { font-size: 12px; color: var(--text-muted); }

/* ==================== 数据统计 ==================== */
.stats-section { background: var(--primary-gradient); color: #fff; }
.stats-grid { display: flex; justify-content: center; gap: 48px; margin-bottom: 32px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-size: 36px; font-weight: 800; }
.stat-label { font-size: 14px; opacity: 0.85; margin-top: 4px; }
.trust-badges { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 6px; padding: 8px 18px; background: rgba(255,255,255,0.15); border-radius: 20px; font-size: 13px; }
.badge i { font-size: 14px; }

/* ==================== 首页FAQ ==================== */
#faq .faq-list { max-width: 800px; margin: 0 auto; }

/* ==================== 首页资讯 ==================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 8px; }
.news-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-link { display: block; color: inherit; }
.news-link:hover { color: inherit; }
.news-img-wrap { height: 160px; overflow: hidden; background: var(--bg-light); }
.news-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.news-card .news-content { padding: 16px; }
.news-card .news-content h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; color: var(--text); line-height: 1.4; }
.news-card .news-content p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; }
.news-date { font-size: 12px; color: var(--text-muted); }

/* ==================== 响应式 ==================== */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; gap: 32px; }
  .hero-text h1 { font-size: 28px; }
  .hero-text { text-align: center; }
  .hero-sub { margin: 0 auto 24px; }
  .hero-btns { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .characters-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-showcase { flex-direction: column; }
  .reviews-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .flow-steps { flex-direction: column; gap: 16px; }
  .flow-step::after { display: none; }
  .stats-grid { gap: 24px; }
  .stat-num { font-size: 28px; }
}

@media (max-width: 480px) {
  .hero-text h1 { font-size: 24px; }
  .hero-section { padding: 48px 0 56px; }
  .features-grid { grid-template-columns: 1fr; }
  .characters-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}
